packages feed

stt-0.2.1: stt.cabal

name:                stt
version:             0.2.1
synopsis:            A monad transformer version of the ST monad
license:             MIT
license-file:        LICENSE
author:              Kyle McKean
maintainer:          mckean.kylej@gmail.com
category:            Control
build-type:          Simple
cabal-version:       >=1.10
Tested-With:         GHC >= 7.4 && <= 8.0.2
description:	
   A monad transformer version of the ST monad

   Warning! This monad transformer should not be used with monads that
   can contain multiple answers, like the list monad. The reason is that 
   the state token will be duplicated across the different answers and this causes
   Bad Things to happen (such as loss of referential transparency). Safe 
   monads include the monads State, Reader, Writer, Maybe and 
   combinations of their corresponding monad transformers.

source-repository head
  type:     git
  location: https://github.com/mckeankylej/stt

library
  exposed-modules:     Control.Monad.Trans.ST
                       Control.Monad.Trans.ST.Internal
  build-depends:       base >= 4.5 && < 5
                     , mtl  >= 2.2.1 && < 3
                     , primitive >= 0.6.1 && < 0.7
  hs-source-dirs:      src
  default-language:    Haskell2010

test-suite test
  default-language: Haskell2010
  type:             exitcode-stdio-1.0
  hs-source-dirs:   test
  main-is:          Main.hs
  build-depends:    base >= 4 && < 5
                  , tasty >= 0.11.0.4 && < 0.12
                  , tasty-quickcheck >= 0.8.4 && < 0.9
                  , tasty-hunit >= 0.9.2 && < 0.10
                  , transformers >= 0.4 && < 0.6
                  , stt