5ff7a4ea34dcf5cf1cc8fffacb64ca562d115fac
[packages/mtl.git] / mtl.cabal
1 name:         mtl
2 version:      2.2.2
3 cabal-version: >= 1.10
4 license:      BSD3
5 license-file: LICENSE
6 author:       Andy Gill
7 maintainer:   Edward Kmett <ekmett@gmail.com>
8 category:     Control
9 synopsis:     Monad classes for transformers, using functional dependencies
10 homepage:     http://github.com/haskell/mtl
11 bug-reports:  http://github.com/haskell/mtl/issues
12 description:
13   MTL is a collection of monad classes, extending the 'transformers'
14   package, using functional dependencies for generic lifting of
15   monadic actions.
16 build-type: Simple
17 extra-source-files: CHANGELOG.markdown, README.markdown
18 tested-with:
19   GHC==7.0.4,
20   GHC==7.2.2,
21   GHC==7.4.2,
22   GHC==7.6.3,
23   GHC==7.8.4,
24   GHC==7.10.3,
25   GHC==8.0.2,
26   GHC==8.2.2,
27   GHC==8.4.3
28
29 source-repository head
30   type: git
31   location: https://github.com/haskell/mtl.git
32
33 Library
34   exposed-modules:
35     Control.Monad.Cont
36     Control.Monad.Cont.Class
37     Control.Monad.Error
38     Control.Monad.Error.Class
39     Control.Monad.Except
40     Control.Monad.Identity
41     Control.Monad.List
42     Control.Monad.RWS
43     Control.Monad.RWS.Class
44     Control.Monad.RWS.Lazy
45     Control.Monad.RWS.Strict
46     Control.Monad.Reader
47     Control.Monad.Reader.Class
48     Control.Monad.State
49     Control.Monad.State.Class
50     Control.Monad.State.Lazy
51     Control.Monad.State.Strict
52     Control.Monad.Trans
53     Control.Monad.Writer
54     Control.Monad.Writer.Class
55     Control.Monad.Writer.Lazy
56     Control.Monad.Writer.Strict
57   build-depends: base < 5, transformers >= 0.4 && <0.6
58
59   default-language: Haskell2010
60   other-extensions:
61     CPP
62     MultiParamTypeClasses
63     FunctionalDependencies
64     FlexibleInstances
65     UndecidableInstances
66
67   -- This is a SafeHaskell safeguard (pun intended) to explicitly declare the API contract of `mtl`
68   -- GHC versions before 7.4 were hopelessly broken or incapable of SafeHaskell
69   if impl(ghc >= 7.4)
70     default-extensions: Safe
71
72   ghc-options: -Wall -fno-warn-unused-imports -fno-warn-warnings-deprecations
73
74   if impl(ghc >= 8.0)
75     ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances