File: transformers-compat.cabal

package info (click to toggle)
haskell-transformers-compat 0.3.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 132 kB
  • sloc: haskell: 570; makefile: 2
file content (80 lines) | stat: -rw-r--r-- 2,302 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name:          transformers-compat
category:      Compatibility
version:       0.3.3.3
license:       BSD3
cabal-version: >= 1.8
license-file:  LICENSE
author:        Edward A. Kmett
maintainer:    Edward A. Kmett <ekmett@gmail.com>
stability:     provisional
homepage:      http://github.com/ekmett/transformers-compat/
bug-reports:   http://github.com/ekmett/transformers-compat/issues
copyright:     Copyright (C) 2012 Edward A. Kmett
synopsis:      A small compatibility shim exposing the new types from transformers 0.3 and 0.4 to older Haskell platforms.
description:
  This package includes backported versions of types that were added
  to transformers in transformers 0.3 an 0.4 for users who need strict
  transformers 0.2 or 0.3 compatibility to run on old versions of the
  platform, but also need those types.
  .
  Those users should be able to just depend on @transformers >= 0.2@
  and @transformers-compat >= 0.3@.
  .
  Note: missing methods are not supplied, but this at least permits the types to be used.

build-type:    Simple
tested-with:   GHC == 7.0.4, GHC == 7.4.1, GHC == 7.4.2, GHC == 7.6.1, GHC == 7.8.2
extra-source-files:
  .travis.yml
  .ghci
  .gitignore
  .vim.custom
  config
  HLint.hs
  README.markdown
  CHANGELOG.markdown

source-repository head
  type: git
  location: git://github.com/ekmett/transformers-compat.git

flag two
  default: False
  description: Use transformers 0.2. This must be selected manually and should
    probably only be used on older GHCs around 7.0.x.
  manual: True

flag three
  default: True
  manual: True
  description: Use transformers 0.3. This should toggle on/off automatically.

library
  build-depends:
    base >= 4.3 && < 5

  other-modules:
    Paths_transformers_compat

  if flag(three)
    hs-source-dirs: 0.3
    build-depends: transformers >= 0.3 && < 0.4
  else
    if flag(two)
      hs-source-dirs: 0.2 0.3
      build-depends: transformers >= 0.2 && < 0.3
    else
      build-depends: transformers >= 0.4.1 && < 0.5

  if flag(two)
    exposed-modules:
      Control.Applicative.Backwards
      Control.Applicative.Lift
      Data.Functor.Reverse

  if flag(two) || flag(three)
    exposed-modules:
      Control.Monad.Trans.Except
      Control.Monad.Signatures
      Data.Functor.Classes
      Data.Functor.Sum