项目作者: kakkun61

项目描述 :
Wrap some commands with stack.
高级语言: Haskell
项目地址: git://github.com/kakkun61/stack-wrapper.git
创建时间: 2018-12-20T00:48:15Z
项目社区:https://github.com/kakkun61/stack-wrapper

开源协议:Other

下载


stack-wrapper

Hackage

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:

  1. search a compiler under stack environment
  2. give the global, snapshot and local package DB to the compiler
  3. 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-pkg etc.
  • STACK_WRAPPER_<exe name>
    • the default executable file for
    • on Windows remove the .exe extension