name:         mtl
version:      2.2.2
cabal-version: >= 1.10
license:      BSD3
license-file: LICENSE
author:       Andy Gill
maintainer:   Edward Kmett <ekmett@gmail.com>
category:     Control
synopsis:     Monad classes, using functional dependencies
homepage:     http://github.com/haskell/mtl
bug-reports:  http://github.com/haskell/mtl/issues
description:
    Monad classes using functional dependencies, with instances
    for various monad transformers, inspired by the paper
    /Functional Programming with Overloading and Higher-Order Polymorphism/,
    by Mark P Jones, in /Advanced School of Functional Programming/, 1995
    (<http://web.cecs.pdx.edu/~mpj/pubs/springschool.html>).
build-type: Simple
extra-source-files: CHANGELOG.markdown, README.markdown
tested-with:
  GHC==7.0.4,
  GHC==7.2.2,
  GHC==7.4.2,
  GHC==7.6.3,
  GHC==7.8.4,
  GHC==7.10.3,
  GHC==8.0.2,
  GHC==8.2.2,
  GHC==8.4.1

source-repository head
  type: git
  location: https://github.com/haskell/mtl.git

Library
  exposed-modules:
    Control.Monad.Cont
    Control.Monad.Cont.Class
    Control.Monad.Error
    Control.Monad.Error.Class
    Control.Monad.Except
    Control.Monad.Identity
    Control.Monad.List
    Control.Monad.RWS
    Control.Monad.RWS.Class
    Control.Monad.RWS.Lazy
    Control.Monad.RWS.Strict
    Control.Monad.Reader
    Control.Monad.Reader.Class
    Control.Monad.State
    Control.Monad.State.Class
    Control.Monad.State.Lazy
    Control.Monad.State.Strict
    Control.Monad.Trans
    Control.Monad.Writer
    Control.Monad.Writer.Class
    Control.Monad.Writer.Lazy
    Control.Monad.Writer.Strict
  build-depends: base < 5, transformers >= 0.4 && <0.6

  default-language: Haskell2010
  other-extensions:
    CPP
    MultiParamTypeClasses
    FunctionalDependencies
    FlexibleInstances
    UndecidableInstances

  -- This is a SafeHaskell safeguard (pun intended) to explicitly declare the API contract of `mtl`
  -- GHC versions before 7.4 were hopelessly broken or incapable of SafeHaskell
  if impl(ghc >= 7.4)
    default-extensions: Safe

  ghc-options: -Wall -fno-warn-unused-imports -fno-warn-warnings-deprecations

  if impl(ghc >= 8.0)
    ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
