# ghc-paths

> Tells Haskell programs where GHC is installed

Source: https://talira.ai/catalog/ghc-paths-49zgw3jd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / compilers](https://talira.ai/categories/developer-tools/compilers), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Simon Marlow](https://talira.ai/orgs/simon-marlow.md)

ghc-paths is a small [Haskell](https://talira.ai/catalog/haskell-jjq1dx6f.md) 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.

## Links

- GitHub: https://github.com/simonmar/ghc-paths

## 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

## Trust

Overall: 0.30 out of 1.
Signals: maintenance 0.47, adoption 0.22, momentum 0.01, community 0.49, backing 0.30, extensibility 0.00.

- last commit 51 days ago
- 3 commits in the last 90 days
- 11 GitHub stars
- 16 contributors
- backed by Simon Marlow

## Sources

[^1]: https://github.com/simonmar/ghc-paths/blob/master/LICENSE (checked 29 Nov 2026)
[^2]: https://github.com/simonmar/ghc-paths/blob/master/ghc-paths.cabal (checked 29 Nov 2026)
