cmdargs >= 0.10.5,
configurator >= 0.2,
directory >= 1.2,
+ filepath >= 1.3,
http-client >= 0.3,
http-client-tls >= 0.2,
HUnit == 1.2.*,
-fwarn-unused-do-bind
-optc-O3
-optc-march=native
+ -O2
test-suite testsuite
type: exitcode-stdio-1.0
cmdargs >= 0.10.5,
configurator >= 0.2,
directory >= 1.2,
+ filepath >= 1.3,
http-client >= 0.3,
http-client-tls >= 0.2,
MissingH >= 1.2,
-fwarn-unused-do-bind
-optc-O3
-optc-march=native
+ -O2
+
+
+test-suite doctests
+ type: exitcode-stdio-1.0
+ hs-source-dirs: test
+ main-is: Doctests.hs
+ build-depends:
+ base >= 4.6 && < 5,
+ -- Additional test dependencies.
+ doctest >= 0.9,
+ filemanip >= 0.3
+
+ -- It's not entirely clear to me why I have to reproduce all of this.
+ ghc-options:
+ -Wall
+ -fwarn-hi-shadowing
+ -fwarn-missing-signatures
+ -fwarn-name-shadowing
+ -fwarn-orphans
+ -fwarn-type-defaults
+ -fwarn-tabs
+ -fwarn-incomplete-record-updates
+ -fwarn-monomorphism-restriction
+ -fwarn-unused-do-bind
+ -rtsopts
+ -threaded
+ -optc-O3
+ -optc-march=native
+ -O2
+
source-repository head
type: git
--- /dev/null
+module Main
+where
+
+import Test.DocTest
+import System.FilePath.Find ((==?), always, extension, find)
+
+find_sources :: IO [FilePath]
+find_sources = find always (extension ==? ".hs") "src/"
+
+main :: IO ()
+main = do
+ sources <- find_sources
+ doctest $ ["-isrc", "-idist/build/autogen"] ++ sources