]> gitweb.michael.orlitzky.com - dead/halcyon.git/blobdiff - halcyon.cabal
Add a doctest suite.
[dead/halcyon.git] / halcyon.cabal
index e425797b10a40cfec9144f28527517b378a7e64e..dfbd1745940d6c7bc88377d099cb6a44173c3102 100644 (file)
@@ -15,26 +15,27 @@ build-type:     Simple
 
 executable halcyon
   build-depends:
 
 executable halcyon
   build-depends:
-    aeson                       == 0.6.*,
-    authenticate-oauth          == 1.4.*,
-    base                        == 4.*,
-    bytestring                  == 0.10.*,
+    aeson                       >= 0.7,
+    authenticate-oauth          >= 1.5,
+    base                        >= 4.6 && < 5,
+    bytestring                  >= 0.10,
     cmdargs                     >= 0.10.5,
     cmdargs                     >= 0.10.5,
-    configurator                == 0.2.*,
-    directory                   == 1.2.*,
-    http-client                 == 0.2.*,
-    http-client-tls             == 0.2.*,
+    configurator                >= 0.2,
+    directory                   >= 1.2,
+    filepath                    >= 1.3,
+    http-client                 >= 0.3,
+    http-client-tls             >= 0.2,
     HUnit                       == 1.2.*,
     HUnit                       == 1.2.*,
-    MissingH                    == 1.*,
-    process                     == 1.*,
-    old-locale                  == 1.*,
+    MissingH                    >= 1.2,
+    process                     >= 1.1,
+    old-locale                  >= 1,
     regex-compat                == 0.*,
     regex-compat                == 0.*,
-    tagsoup                     == 0.13.*,
-    text                        == 0.11.*,
-    time                        == 1.*,
+    tagsoup                     >= 0.13,
+    text                        >= 1.1,
+    time                        >= 1.4,
     -- Test deps
     -- Test deps
-    test-framework              == 0.8.*,
-    test-framework-hunit        == 0.3.*
+    tasty                       >= 0.8,
+    tasty-hunit                 >= 0.3
 
   main-is:
     Main.hs
 
   main-is:
     Main.hs
@@ -67,32 +68,33 @@ executable halcyon
     -fwarn-unused-do-bind
     -optc-O3
     -optc-march=native
     -fwarn-unused-do-bind
     -optc-O3
     -optc-march=native
+    -O2
 
 test-suite testsuite
   type: exitcode-stdio-1.0
   hs-source-dirs: src test
   main-is: TestSuite.hs
   build-depends:
 
 test-suite testsuite
   type: exitcode-stdio-1.0
   hs-source-dirs: src test
   main-is: TestSuite.hs
   build-depends:
-    aeson                       == 0.6.*,
-    authenticate-oauth          == 1.4.*,
-    base                        == 4.*,
-    bytestring                  == 0.10.*,
+    aeson                       >= 0.7,
+    authenticate-oauth          >= 1.5,
+    base                        >= 4.6 && < 5,
+    bytestring                  >= 0.10,
     cmdargs                     >= 0.10.5,
     cmdargs                     >= 0.10.5,
-    configurator                == 0.2.*,
-    directory                   == 1.2.*,
-    http-client                 == 0.2.*,
-    http-client-tls             == 0.2.*,
-    HUnit                       == 1.2.*,
-    MissingH                    == 1.*,
-    process                     == 1.*,
-    old-locale                  == 1.*,
+    configurator                >= 0.2,
+    directory                   >= 1.2,
+    filepath                    >= 1.3,
+    http-client                 >= 0.3,
+    http-client-tls             >= 0.2,
+    MissingH                    >= 1.2,
+    process                     >= 1.1,
+    old-locale                  >= 1,
     regex-compat                == 0.*,
     regex-compat                == 0.*,
-    tagsoup                     == 0.13.*,
-    text                        == 0.11.*,
-    time                        == 1.*,
+    tagsoup                     >= 0.13,
+    text                        >= 1.1,
+    time                        >= 1.4,
     -- Test deps
     -- Test deps
-    test-framework              == 0.8.*,
-    test-framework-hunit        == 0.3.*
+    tasty                       >= 0.8,
+    tasty-hunit                 >= 0.3
 
   -- It's not entirely clear to me why I have to reproduce all of this.
   ghc-options:
 
   -- It's not entirely clear to me why I have to reproduce all of this.
   ghc-options:
@@ -108,6 +110,37 @@ test-suite testsuite
     -fwarn-unused-do-bind
     -optc-O3
     -optc-march=native
     -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
 
 source-repository head
   type: git