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