Flags in cabal files

前端 未结 3 2264
既然无缘
既然无缘 2021-02-19 10:27

I am following the user-guide for package developing: https://www.haskell.org/cabal/users-guide/developing-packages.html#quickstart

I got stuck in the Flags

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-19 11:13

    With Stack, use

    stack build --flag :debug
    

    to set debug flag to True for , or use --flag '*:debug' to set debug flag to True for all packages. Replace debug with -debug to set debug flag to False.

    You can also specify flag settings in a stack.yaml file. For example, to set debug flag to False for , add this to your stack.yaml:

    flags:
      :
        debug: false
    

提交回复
热议问题