git.iko.soy/typeable/validationt
on master help sign in
Added doctests and compiler warnings
187a9f0iko
stack.yaml+2−2
@@ -15,7 +15,7 @@
15# resolver:
15# resolver:
16# name: custom-snapshot
16# name: custom-snapshot
17# location: "./custom-snapshot.yaml"
17# location: "./custom-snapshot.yaml"
18−resolver: lts-8.14
18+resolver: lts-14.20
19
19
20# User packages to be built.
20# User packages to be built.
21# Various formats can be used as shown in the example below.
21# Various formats can be used as shown in the example below.
@@ -63,4 +63,4 @@ extra-package-dbs: []
63# extra-lib-dirs: [/path/to/dir]
63# extra-lib-dirs: [/path/to/dir]
64#
64#
65# Allow a newer minor version of GHC than the snapshot specifies
65# Allow a newer minor version of GHC than the snapshot specifies
66−# compiler-check: newer-minor
66+# compiler-check: newer-minor
test/Doc.hsnew file+6
@@ -0,0 +1,6 @@
1+module Main (main) where
2+
3+import Test.DocTest
4+
5+main :: IO ()
6+main = doctest [ "-XOverloadedStrings", "src" ]
validationt.cabal+30
@@ -38,3 +38,33 @@ library
38 , vector
38 , vector
39 hs-source-dirs: src
39 hs-source-dirs: src
40 default-language: Haskell2010
40 default-language: Haskell2010
41+ ghc-options: -fwarn-unused-binds
42+ -Wall
43+ -Wincomplete-uni-patterns
44+ -Wincomplete-record-updates
45+ -Wpartial-fields
46+ -Werror=missing-home-modules
47+ -Wmissing-home-modules
48+ -Widentities
49+ -Wredundant-constraints
50+ -Wmissing-export-lists
51+
52+test-suite doctest
53+ type: exitcode-stdio-1.0
54+ hs-source-dirs: test
55+ ghc-options: -Wall
56+ main-is: Doc.hs
57+ build-depends: base >=4.8 && < 5
58+ , aeson >= 1.0
59+ , doctest
60+ , containers
61+ , exceptions
62+ , lens
63+ , monad-control
64+ , mtl
65+ , QuickCheck
66+ , text
67+ , transformers
68+ , transformers-base
69+ , vector
70+ , doctest