packages feed

monad-io-adapter-0.1.0.0: monad-io-adapter.cabal

-- This file has been generated from package.yaml by hpack version 0.18.1.
--
-- see: https://github.com/sol/hpack

name:           monad-io-adapter
version:        0.1.0.0
synopsis:       Adapters between MonadIO and MonadBase IO.
description:    This package provides utilities for converting between computations
                parameterized via two different typeclasses 'MonadIO' and 'MonadBase', both of
                which can be used to abstract over monad transformer stacks with 'IO' at the
                base. Unfortunately, both classes are frequently used in the Haskell
                ecosystem, since they have minor differences.
                .
                Due to these typeclasses being unrelated, it’s not entirely uncommon to end up
                with type signatures like @('MonadIO' m, 'MonadBaseControl' 'IO' m) => ...@,
                which are a little silly, since @'MonadBaseControl' 'IO'@ really includes all
                the power of 'MonadIO'.
                .
                To help alleviate this problem, this package provides a set of utilities for
                converting between the two constraints in situations where possible.
category:       Control
homepage:       https://github.com/cjdev/monad-io-adapter#readme
bug-reports:    https://github.com/cjdev/monad-io-adapter/issues
author:         Alexis King <lexi.lambda@gmail.com>
maintainer:     Alexis King <lexi.lambda@gmail.com>
copyright:      2017 CJ Affiliate by Conversant
license:        ISC
license-file:   LICENSE
build-type:     Simple
cabal-version:  >= 1.10

extra-source-files:
    CHANGELOG.md
    package.yaml
    README.md
    stack.yaml

source-repository head
  type: git
  location: https://github.com/cjdev/monad-io-adapter

library
  hs-source-dirs:
      src
  default-extensions: FlexibleContexts FlexibleInstances FunctionalDependencies GADTs GeneralizedNewtypeDeriving KindSignatures LambdaCase MultiParamTypeClasses RankNTypes ScopedTypeVariables StandaloneDeriving TupleSections TypeApplications TypeOperators
  ghc-options: -Wall
  build-depends:
      base >= 4.9 && < 5
    , exceptions >= 0.6 && < 1
    , monad-control >= 1 && < 2
    , monad-logger
    , mtl
    , transformers
    , transformers-base
  exposed-modules:
      Control.Monad.IO.Adapter
  other-modules:
      Paths_monad_io_adapter
  default-language: Haskell2010

test-suite monad-io-adapter-test-suite
  type: exitcode-stdio-1.0
  main-is: Main.hs
  hs-source-dirs:
      test
  default-extensions: FlexibleContexts FlexibleInstances FunctionalDependencies GADTs GeneralizedNewtypeDeriving KindSignatures LambdaCase MultiParamTypeClasses RankNTypes ScopedTypeVariables StandaloneDeriving TupleSections TypeApplications TypeOperators
  ghc-options: -Wall -rtsopts -threaded -with-rtsopts=-N
  build-depends:
      base
    , hspec
    , monad-io-adapter
    , transformers-base
  other-modules:
      Control.Monad.IO.AdapterSpec
  default-language: Haskell2010