File: barbies.cabal

package info (click to toggle)
haskell-barbies 2.0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 460 kB
  • sloc: haskell: 5,483; makefile: 3
file content (201 lines) | stat: -rw-r--r-- 4,355 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
name:           barbies
version:        2.0.5.0
synopsis:       Classes for working with types that can change clothes.
description:    Types that are parametric on a functor are like Barbies that have an outfit for each role. This package provides the basic abstractions to work with them comfortably.
category:       Data Structures
homepage:       https://github.com/jcpetruzza/barbies#readme
bug-reports:    https://github.com/jcpetruzza/barbies/issues
author:         Daniel Gorin
maintainer:     jcpetruzza@gmail.com
copyright:      2018 Daniel Gorin
license:        BSD3
license-file:   LICENSE
build-type:     Simple
cabal-version:  >= 1.10

extra-source-files:
    ChangeLog.md
    README.md

source-repository head
  type: git
  location: https://github.com/jcpetruzza/barbies

library

  exposed-modules:
      Barbies
      Barbies.Bare
      Barbies.Bi
      Barbies.Constraints
      Barbies.Internal

      Data.Functor.Barbie
      Data.Functor.Transformer

      -- Deprecated modules
      Data.Barbie
      Data.Barbie.Bare
      Data.Barbie.Constraints
      Data.Functor.Prod

  other-modules:
      Barbies.Generics.Applicative
      Barbies.Generics.Bare
      Barbies.Generics.Constraints
      Barbies.Generics.Distributive
      Barbies.Generics.Functor
      Barbies.Generics.Traversable

      Barbies.Internal.ApplicativeB
      Barbies.Internal.ApplicativeT

      Barbies.Internal.BareB
      Barbies.Internal.ConstraintsB
      Barbies.Internal.ConstraintsT
      Barbies.Internal.Containers
      Barbies.Internal.Dicts

      Barbies.Internal.DistributiveB
      Barbies.Internal.DistributiveT

      Barbies.Internal.FunctorB
      Barbies.Internal.FunctorT

      Barbies.Internal.MonadT

      Barbies.Internal.TraversableB
      Barbies.Internal.TraversableT

      Barbies.Internal.Trivial
      Barbies.Internal.Wear
      Barbies.Internal.Wrappers
      Barbies.Internal.Writer

      Data.Generics.GenericN

      -- To be removed
      Data.Barbie.Internal.Product
      Data.Barbie.Internal.ProductC

  hs-source-dirs:
      src

  build-depends:
      base >=4.11 && <5,
      distributive,
      transformers

  ghc-options: -Wall

  default-language: Haskell2010
  default-extensions:
      ConstraintKinds
    , DataKinds
    , DefaultSignatures
    , DeriveFunctor
    , DeriveFoldable
    , DeriveTraversable
    , DeriveGeneric
    , DeriveDataTypeable
    , EmptyCase
    , ExplicitForAll
    , FlexibleContexts
    , FlexibleInstances
    , GADTSyntax
    , KindSignatures
    , LambdaCase
    , MultiParamTypeClasses
    , Rank2Types
    , ScopedTypeVariables
    , StandaloneDeriving
    , TypeApplications
    , TypeOperators

test-suite barbies-test
  type: exitcode-stdio-1.0

  main-is: Spec.hs

  other-modules:
      TestBarbies
      TestBarbiesW
      TestBiBarbies
      Clothes
      Spec.Applicative
      Spec.Bare
      Spec.Constraints
      Spec.Distributive
      Spec.Functor
      Spec.Traversable
      Spec.Wrapper

  hs-source-dirs:
      test

  ghc-options: -threaded -Wall -O0

  build-depends:
      barbies
    , base >=4.7 && <5
    , distributive
    , QuickCheck
    , tasty
    , tasty-hunit
    , tasty-quickcheck

  default-language: Haskell2010
  default-extensions:
    DeriveDataTypeable
    DeriveGeneric
    KindSignatures
    LambdaCase
    Rank2Types
    ScopedTypeVariables
    StandaloneDeriving
    TypeApplications
    TypeOperators

-- This tests that the deprecated Data.Barbie interface
-- can still be used to build code writen against 1.x,
-- with deprecation warnings
test-suite barbies-test-legacy
  type: exitcode-stdio-1.0

  main-is: Legacy/Spec.hs

  other-modules:
      Legacy.TestBarbies
      Legacy.TestBarbiesW
      Legacy.Clothes
      Legacy.Spec.Bare
      Legacy.Spec.Constraints
      Legacy.Spec.Functor
      Legacy.Spec.Traversable
      Legacy.Spec.Product
      Legacy.Spec.Wrapper

  hs-source-dirs:
      test-legacy

  ghc-options: -threaded -Wall -Wno-deprecations -O0

  build-depends:
      barbies
    , base >=4.7 && <5
    , QuickCheck
    , tasty
    , tasty-hunit
    , tasty-quickcheck

  default-language: Haskell2010
  default-extensions:
    DeriveDataTypeable
    DeriveGeneric
    KindSignatures
    LambdaCase
    Rank2Types
    ScopedTypeVariables
    StandaloneDeriving
    TypeApplications
    TypeOperators