talira

ghc-paths

Tells Haskell programs where GHC is installed

open sourceBSD-3-Clausefree

ghc-paths is a small Haskell package that records where GHC is installed when it's built, exposing the paths of ghc, ghc-pkg, GHC's library directory (libdir) and its docs directory to your program. It's by Simon Marlow.

Problems it solves

  • find GHC's libdir from a program using the GHC API
  • locate the ghc binary from Haskell code
  • run the GHC API inside my Haskell tool

Features

  • paths of ghc and ghc-pkg
  • GHC libdir and docdir
  • recorded at build time