mirror of
https://github.com/srid/haskell-flake.git
synced 2024-09-11 14:05:58 +03:00
.. | ||
test | ||
default.nix | ||
parser_tests.nix | ||
parser.nix | ||
README.md |
haskell-parsers
haskell-parsers
provides parsers for Haskell associated files: cabal and cabal.project. It provides:
findPackagesInCabalProject
: a superior alternative to nixpkgs'haskellPathsInDir
.- It locates packages based on the "packages" field of
cabal.project
file if it exists (otherwise it returns the top-level package).
- It locates packages based on the "packages" field of
getCabalExecutables
: a function to extract executables from a.cabal
file.
Limitations
- Glob patterns in
cabal.project
are not supported yet. Feel free to open a PR improving the parser to support them. - https://github.com/srid/haskell-flake/issues/113