mirror of
https://github.com/typeable/haskell-stack-trace-plugin.git
synced 2024-09-17 15:07:15 +03:00
Add dev flag
This commit is contained in:
parent
64f5a3e069
commit
dd4f8dbfd0
@ -19,6 +19,11 @@ source-repository head
|
|||||||
type: git
|
type: git
|
||||||
location: git://github.com/waddlaw/haskell-stack-trace-plugin
|
location: git://github.com/waddlaw/haskell-stack-trace-plugin
|
||||||
|
|
||||||
|
flag dev
|
||||||
|
description: Turn on development settings.
|
||||||
|
manual: True
|
||||||
|
default: False
|
||||||
|
|
||||||
library
|
library
|
||||||
hs-source-dirs: src
|
hs-source-dirs: src
|
||||||
build-depends:
|
build-depends:
|
||||||
@ -28,7 +33,16 @@ library
|
|||||||
exposed-modules:
|
exposed-modules:
|
||||||
StackTrace.Plugin
|
StackTrace.Plugin
|
||||||
|
|
||||||
default-language: Haskell2010
|
if flag(dev)
|
||||||
|
ghc-options: -Wall -Werror -Wcompat
|
||||||
|
-- -Wincomplete-record-updates
|
||||||
|
-Wincomplete-uni-patterns
|
||||||
|
-Wnoncanonical-monad-instances
|
||||||
|
-Wnoncanonical-monadfail-instances
|
||||||
|
-Wno-missing-home-modules
|
||||||
|
else
|
||||||
|
ghc-options: -O2 -Wall
|
||||||
|
default-language: Haskell2010
|
||||||
|
|
||||||
executable example
|
executable example
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
|
Loading…
Reference in New Issue
Block a user