]> gitweb.michael.orlitzky.com - dead/halcyon.git/blobdiff - twat.cabal
Set a lower bound on cmdargs to avoid a bug.
[dead/halcyon.git] / twat.cabal
index 20abfbcc13195fc33eea5ab173a0ec46686a6ef4..d8180f9f617286696c8229e5333f1d56e63a24b0 100644 (file)
@@ -3,22 +3,37 @@ 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:       Utils, Web
 synopsis:
-  Twat twats tweets so you don't have to twitter.
+  Twat twats tweets so you don't have to Twitter.
 build-type:     Simple
 
 executable twat
   build-depends:
-    base                        == 4.4.*,
-    curl                        == 1.3.*,
-    HaXml                       == 1.22.*,
+    aeson                       == 0.6.*,
+    authenticate-oauth          == 1.4.*,
+    base                        == 4.*,
+    bytestring                  == 0.10.*,
+    cmdargs                     >= 0.10.5,
+    conduit                     == 1.*,
+    configurator                == 0.2.*,
+    directory                   == 1.2.*,
+    http-conduit                == 1.9.*,
     HUnit                       == 1.2.*,
     MissingH                    == 1.*,
     process                     == 1.*,
     old-locale                  == 1.*,
     regex-compat                == 0.*,
-    time                        == 1.2.*
-
+    tagsoup                     == 0.12.*,
+    text                        == 0.11.*,
+    time                        == 1.*,
+    -- Test deps
+    test-framework              == 0.8.*,
+    test-framework-hunit        == 0.3.*
 
   main-is:
     Main.hs
@@ -26,6 +41,59 @@ executable twat
   hs-source-dirs:
     src/
 
+  other-modules:
+    CommandLine
+    Configuration
+    ExitCodes
+    Html
+    Mail
+    OptionalConfiguration
+    StringUtils
+    Twitter.Http
+    Twitter.Status
+    Twitter.User
+
+  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
+
+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.*,
+    cmdargs                     >= 0.10.5,
+    conduit                     == 1.*,
+    configurator                == 0.2.*,
+    directory                   == 1.2.*,
+    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
@@ -37,8 +105,10 @@ 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
+
+source-repository head
+  type: git
+  location: http://michael.orlitzky.com/git/twat.git
+  branch: master