File: managed.cabal

package info (click to toggle)
haskell-managed 1.0.10-2
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 68 kB
  • sloc: haskell: 157; makefile: 5
file content (54 lines) | stat: -rw-r--r-- 1,648 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Name: managed
Version: 1.0.10
Cabal-Version: >=1.10
Build-Type: Simple
License: BSD3
License-File: LICENSE
Copyright: 2014 Gabriella Gonzalez
Author: Gabriella Gonzalez
Maintainer: GenuineGabriella@gmail.com
Tested-With:
    GHC == 9.2.1
    GHC == 9.0.1
    GHC == 8.10.7
    GHC == 8.8.4
    GHC == 8.6.5
    GHC == 8.4.4
    GHC == 8.2.2
    GHC == 8.0.2
    GHC == 7.10.3
Bug-Reports: https://github.com/Gabriella439/managed/issues
Synopsis: A monad for managed values
Description: In Haskell you very often acquire values using the @with...@
  idiom using functions of type @(a -> IO r) -> IO r@.  This idiom forms a
  @Monad@, which is a special case of the @ContT@ monad (from @transformers@) or
  the @Codensity@ monad (from @kan-extensions@).  The main purpose behind this
  package is to provide a restricted form of these monads specialized to this
  unusually common case.
  .
  The reason this package defines a specialized version of these types is to:
  .
  * be more beginner-friendly,
  .
  * simplify inferred types and error messages, and:
  .
  * provide some additional type class instances that would otherwise be orphan
    instances
Category: Control
Source-Repository head
    Type: git
    Location: https://github.com/Gabriella439/managed

Library
    Hs-Source-Dirs: src
    Build-Depends:
        base              >= 4.8     && < 5  ,
        transformers      >= 0.2.0.0 && < 0.7
    if !impl(ghc >= 8.0)
      Build-Depends:
        semigroups        >= 0.16    && < 0.21
    Exposed-Modules:
        Control.Monad.Managed,
        Control.Monad.Managed.Safe
    GHC-Options: -Wall
    Default-Language: Haskell2010