Skip to content

Commit

Permalink
Use the proper GHC version given by cabal
Browse files Browse the repository at this point in the history
Proof against NoImplicitPrelude

fix imports

Add ghc-pkg wrapper

Add documentation to new functions

Construct ghc-pkg name from ghc filename

Replace 'ghc' with 'ghc-pkg' in the filename of the ghc executable. This
is better than assuming the executable starts with a 'ghc-' prefix, as
some distros provide a "triple" for the executable, e.g. 'x86_64-redhat-linux-ghc'.

Replacing 'ghc' with 'ghc-pkg' works for these distros as well and,
additionally, we don't have to manually take care of the '.exe' suffix.

Clear package-env for ghc executable path discovery

Refactor 'cabalProcess' function

Undo indentation changes and improve naming

Remove verbose mode from wrapper
  • Loading branch information
Kleidukos authored and fendor committed Feb 22, 2022
1 parent e4b45f3 commit cda8888
Show file tree
Hide file tree
Showing 4 changed files with 258 additions and 100 deletions.
Loading

0 comments on commit cda8888

Please sign in to comment.