Wrap some commands with stack.
When you invoke ghc
of stack-wrapper, you can invoke the appropriate one which specified by the resolver of stack.yaml.
This helps you when you are working with stack but developing tools etc. don’t support stack.
To check a stack-wrapper version, you give --stack-wrapper
as the first option to commands.
You can set the default executable files with environment variables. They are used when no executable files found except the stack-wrapper’s ones.
This package creates 2 types of executable files.
ghc
runs like:
ghc-pkg
, ghci
, haddock
, hp2ps
, hsc2hs
, runghc
and runhaskell
are also given.
An executable file which is renamed from exe
, for example hhpc
, runs new process stack exec -- hhpc
.
--stack-wrapper
STACK_WRAPPER_GHC_DIR
ghc
, ghc-pkg
etc.STACK_WRAPPER_<exe name>
.exe
extension