Call ghc within stack by calling ghc.
When you invoke ghc of stack-wrapper, you can invoke the appropriate one which specified by the resolver of stack.yaml.
stack-wrapper
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 etc.
ghc runs like:
- search a compiler under stack environment
- give the global, snapshot and local package DB to the compiler
- run the compiler
ghc-pkg, ghci, haddock, hp2ps, hsc2hs, runghc and runhaskell are also given.
exe
An executable file which is renamed from exe, for example hhpc, runs new process stack exec -- hhpc.
Options
--stack-wrapper- print the stack-wrapper version
Environment variables
STACK_WRAPPER_GHC_DIR- the default directory which contains
ghc,ghc-pkgetc.
- the default directory which contains
STACK_WRAPPER_<exe name>- the default executable file for <exe name>
- on Windows remove the
.exeextension.