Friends for --print-libdir

George Russell ger at
Fri May 14 10:12:17 EDT 2004

I think there should be a GHC option --print-sharedir
(or you could call it --print-datadir), corresponding
to ghc --print-libdir.  Thus on our system
    ghc --print-libdir
prints out
and I would like
    ghc --print-sharedir
to print out

At the moment I use
    ghc  --print-libdir | sed -e 's+/lib/\([^/]*\)$+/share/\1+g
but this isn't exactly the happiest of solutions.

The reason my scripts want access to the share directory is that
they want access to HTML files and Haddock interfaces stored there.

More information about the Glasgow-haskell-users mailing list