Skip to content

Commit

Permalink
cabal: stackage support
Browse files Browse the repository at this point in the history
  • Loading branch information
cheecheeo committed Apr 6, 2015
1 parent 915fb8a commit 46a6cb8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cgi.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ Flag network-uri
description: Get Network.URI from the network-uri package
default: True

Flag old-mtl
description: Use mtl-compat and mtl < 2.2.0.1
default: False

Library
Exposed-Modules:
Network.CGI,
Expand All @@ -40,7 +44,6 @@ Library

Build-depends:
parsec >= 2.0 && < 3.2,
mtl>=2.2.1 && < 2.3,
exceptions < 0.9,
xhtml >= 3000.0.0 && < 3000.3,
bytestring < 0.11,
Expand All @@ -53,6 +56,12 @@ Library
Build-depends: network-uri == 2.6.*, network == 2.6.*
Else
Build-depends: network < 2.6
If flag(old-mtl)
Build-depends:
mtl>=2.1.3.1 && < 2.3, mtl-compat >= 0.2.1.1 && < 0.3
Else
Build-depends:
mtl>=2.2.1 && < 2.3

--Executable: printinput
--Main-Is: printinput.hs
Expand Down

0 comments on commit 46a6cb8

Please sign in to comment.