-
Notifications
You must be signed in to change notification settings - Fork 1
/
lens-core.cabal
85 lines (71 loc) · 2.01 KB
/
lens-core.cabal
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
81
82
83
84
85
name: lens-core
category: Data, Lenses
version: 0.1
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/lens-core/
bug-reports: http://github.com/ekmett/lens-core/issues
copyright: Copyright (C) 2012 Edward A. Kmett
synopsis: A Portable Core for Lenses, Folds and Traversals
description: This package provides the core classes and type synonyms for the @lens@ package.
build-type: Simple
tested-with: GHC == 7.0.4, GHC == 7.4.1, GHC == 7.6.1
extra-source-files:
.travis.yml
.ghci
.gitignore
.vim.custom
config
README.markdown
CHANGELOG.markdown
source-repository head
type: git
location: git://github.com/ekmett/lens-core.git
-- Use old transformers
flag transformers2
default: False
manual: False
-- Disallow unsafeCoerce
flag safe
default: False
manual: True
-- Assert that we are trustworthy when we can
flag trustworthy
default: True
manual: True
library
other-extensions:
CPP, FlexibleInstances, MultiParamTypeClasses, FunctionalDependencies, UndecidableInstances, Rank2Types
build-depends:
base >= 2 && < 5
if flag(transformers2)
build-depends: transformers >= 0.2 && < 0.3
hs-source-dirs: compat
exposed-modules:
Control.Applicative.Backwards
Control.Applicative.Lift
Data.Functor.Reverse
else
build-depends: transformers >= 0.3 && < 0.4
exposed-modules:
Control.Lens.Core
Control.Lens.Core.Classes
Control.Lens.Core.Types
if flag(safe)
cpp-options: -DSAFE=1
if impl(ghc<7.4)
ghc-options: -fno-spec-constr-count
if impl(ghc>=7.2)
if flag(trustworthy)
other-extensions: Trustworthy
cpp-options: -DTRUSTWORTHY=1
build-depends: ghc-prim
cpp-options: -DDEFAULT_SIGNATURES=1
else
build-depends: generic-deriving
ghc-options: -Wall -fwarn-tabs -O2 -fdicts-cheap -funbox-strict-fields
hs-source-dirs: src