@@ -1,18 +1,17 @@
1−--------------------------------------------------------------------------------
2−name: cassava-streams
3−version: 0.2.0.0
4−synopsis: io-streams interface for the cassava CSV library.
5−license: BSD3
6−license-file: LICENSE
7−author: Peter Jones <pjones@devalot.com>
8−maintainer: Peter Jones <pjones@devalot.com>
9−copyright: Copyright (c) 2014-2016 Peter Jones
10−category: Data, Text, CSV, IO-Streams
11−build-type: Simple
12−cabal-version: >=1.18
13−tested-with: GHC==7.10.3
14−homepage: https://github.com/pjones/cassava-streams
15−bug-reports: https://github.com/pjones/cassava-streams/issues
1+cabal-version: 2.2
2+name: cassava-streams
3+version: 0.3.0.5
4+synopsis: io-streams interface for the cassava CSV library.
5+license: BSD-3-Clause
6+license-file: LICENSE
7+author: Peter Jones <pjones@devalot.com>
8+maintainer: Peter Jones <pjones@devalot.com>
9+copyright: Copyright (c) 2014-2020 Peter Jones
10+category: Data, Text, CSV, IO-Streams
11+build-type: Simple
12+homepage: https://github.com/pjones/cassava-streams
13+bug-reports: https://github.com/pjones/cassava-streams/issues
14+tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2
1615description:
1716 The cassava-streams library glues togeter the cassava CSV library
1817 and the io-streams streaming library.
@@ -24,84 +23,69 @@ extra-source-files:
2423 README.md
2524 CHANGES.md
2625 test/*.csv
27− build/*.yaml
28− build/*.nix
2926
3027--------------------------------------------------------------------------------
3128source-repository head
3229 type: git
3330 location: https://github.com/pjones/cassava-streams.git
3431
35−--------------------------------------------------------------------------------
36−flag maintainer
37− description: Enable settings for the package maintainer.
38− manual: True
39− default: False
40−
4132--------------------------------------------------------------------------------
4233flag tutorial
4334 description: Build the tutorial binary (useful for profiling).
44− manual: True
45− default: False
35+ manual: True
36+ default: False
37+
38+--------------------------------------------------------------------------------
39+common dependencies
40+ build-depends:
41+ , base >=4.8 && <5.0
42+ , bytestring >=0.10 && <0.12
43+ , cassava >=0.4 && <0.6
44+ , io-streams >=1.1 && <1.6
45+ , vector >=0.10 && <0.14
4646
4747--------------------------------------------------------------------------------
4848library
49+ import: dependencies
4950 exposed-modules:
5051 System.IO.Streams.Csv
5152 System.IO.Streams.Csv.Tutorial
53+
5254 other-modules:
53− System.IO.Streams.Csv.Encode
5455 System.IO.Streams.Csv.Decode
56+ System.IO.Streams.Csv.Encode
5557
56− hs-source-dirs: src
58+ hs-source-dirs: src
5759 default-language: Haskell2010
58− ghc-options: -Wall -fwarn-incomplete-uni-patterns
59−
60− if flag(maintainer)
61− ghc-options: -Werror
62− ghc-prof-options: -prof -auto-all
63−
64− build-depends: base >= 4.6 && < 5.0
65− , bytestring >= 0.10 && < 0.11
66− , cassava >= 0.4 && < 0.5
67− , io-streams >= 1.1 && < 1.4
68− , vector >= 0.10 && < 0.12
60+ ghc-options: -Wall -fwarn-incomplete-uni-patterns
61+ build-depends:
6962
7063--------------------------------------------------------------------------------
7164executable tutorial
7265 default-language: Haskell2010
73− hs-source-dirs: bin
74− main-is: tutorial.hs
75− ghc-options: -Wall -fwarn-incomplete-uni-patterns -rtsopts
76−
77− if flag(maintainer)
78− ghc-options: -Werror
79− ghc-prof-options: -fprof-auto-top -fprof-cafs
66+ hs-source-dirs: bin
67+ main-is: tutorial.hs
68+ ghc-options: -Wall -fwarn-incomplete-uni-patterns -rtsopts
8069
8170 if !flag(tutorial)
8271 buildable: False
72+
8373 else
84− build-depends: base
85− , cassava-streams
86− , io-streams
74+ build-depends:
75+ , base
76+ , cassava-streams
77+ , io-streams
8778
8879--------------------------------------------------------------------------------
8980test-suite test
90− type: exitcode-stdio-1.0
81+ import: dependencies
82+ type: exitcode-stdio-1.0
9183 default-language: Haskell2010
92− hs-source-dirs: test
93− main-is: test.hs
94− ghc-options: -Wall -fwarn-incomplete-uni-patterns
95−
96− if flag(maintainer)
97− ghc-options: -Werror
98−
99− build-depends: base
100− , QuickCheck >= 2.7 && < 3.0
101− , bytestring
102− , cassava
103− , cassava-streams
104− , io-streams
105− , tasty >= 0.8 && < 1.0
106− , tasty-quickcheck >= 0.8 && < 1.0
107− , vector
84+ hs-source-dirs: test
85+ main-is: test.hs
86+ ghc-options: -Wall -fwarn-incomplete-uni-patterns
87+ build-depends:
88+ , cassava-streams
89+ , QuickCheck >=2.7 && <3.0
90+ , tasty >=0.8 && <1.5
91+ , tasty-quickcheck >=0.8 && <1.3