]> gitweb.michael.orlitzky.com - dead/halcyon.git/blobdiff - twat.cabal
Fix a few hlint suggestions.
[dead/halcyon.git] / twat.cabal
index 8a11081d0377b7edbf30d96386d524ed5475de08..12c978ede25872d620e2baa1db72a6681b77ecdb 100644 (file)
@@ -3,6 +3,11 @@ version:        0.0
 cabal-version:  >= 1.8
 author:         Michael Orlitzky
 maintainer:    Michael Orlitzky <michael@orlitzky.com>
+license:        GPL-3
+license-file:   doc/LICENSE
+homepage:       http://michael.orlitzky.com/code/twat.php
+bug-reports:    mailto:michael@orlitzky.com
+category:       Math
 synopsis:
   Twat twats tweets so you don't have to twitter.
 build-type:     Simple
@@ -22,9 +27,12 @@ executable twat
     process                     == 1.*,
     old-locale                  == 1.*,
     regex-compat                == 0.*,
+    tagsoup                     == 0.12.*,
     text                        == 0.11.*,
-    time                        == 1.*
-
+    time                        == 1.*,
+    -- Test deps
+    test-framework              == 0.8.*,
+    test-framework-hunit        == 0.3.*
 
   main-is:
     Main.hs
@@ -32,6 +40,17 @@ executable twat
   hs-source-dirs:
     src/
 
+  other-modules:
+    CommandLine
+    Configuration
+    ExitCodes
+    Html
+    Mail
+    StringUtils
+    Twitter.Http
+    Twitter.Status
+    Twitter.User
+
   ghc-options:
     -Wall
     -fwarn-hi-shadowing
@@ -43,8 +62,50 @@ executable twat
     -fwarn-incomplete-record-updates
     -fwarn-monomorphism-restriction
     -fwarn-unused-do-bind
-    -funbox-strict-fields
-    -fexcess-precision
-    -fno-spec-constr-count
     -optc-O3
     -optc-march=native
+
+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.*,
+    conduit                     == 1.*,
+    directory                   == 1.2.*,
+    HaXml                       == 1.24.*,
+    http-conduit                == 1.9.*,
+    HUnit                       == 1.2.*,
+    MissingH                    == 1.*,
+    process                     == 1.*,
+    old-locale                  == 1.*,
+    regex-compat                == 0.*,
+    tagsoup                     == 0.12.*,
+    text                        == 0.11.*,
+    time                        == 1.*,
+    -- Test deps
+    test-framework              == 0.8.*,
+    test-framework-hunit        == 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
+    -optc-O3
+    -optc-march=native
+
+source-repository head
+  type: git
+  location: http://michael.orlitzky.com/git/twat.git
+  branch: master