@@ -1,18 +1,17 @@
1−--------------------------------------------------------------------------------
2−name: cassava-streams
3−version: 0.1.1.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 Peter Jones
10−category: Data, Text, CSV, IO-Streams
11−build-type: Simple
12−cabal-version: >=1.10
13−tested-with: GHC==7.8.2, GHC==7.8.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.
@@ -22,76 +21,71 @@ description:
2221--------------------------------------------------------------------------------
2322extra-source-files:
2423 README.md
25− CHANGELOG
26− test/simple.csv
24+ CHANGES.md
25+ test/*.csv
2726
2827--------------------------------------------------------------------------------
2928source-repository head
3029 type: git
3130 location: https://github.com/pjones/cassava-streams.git
3231
33−--------------------------------------------------------------------------------
34−flag maintainer
35− description: Enable settings for the package maintainer.
36− manual: True
37− default: False
38−
3932--------------------------------------------------------------------------------
4033flag tutorial
4134 description: Build the tutorial binary (useful for profiling).
42− 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
4346
4447--------------------------------------------------------------------------------
4548library
49+ import: dependencies
4650 exposed-modules:
4751 System.IO.Streams.Csv
4852 System.IO.Streams.Csv.Tutorial
53+
4954 other-modules:
50− System.IO.Streams.Csv.Encode
5155 System.IO.Streams.Csv.Decode
56+ System.IO.Streams.Csv.Encode
5257
53− hs-source-dirs: src
58+ hs-source-dirs: src
5459 default-language: Haskell2010
55− ghc-options: -O2 -Wall -fwarn-incomplete-uni-patterns
56− ghc-prof-options: -prof -auto-all
57−
58− if flag(maintainer)
59− ghc-options: -Werror
60−
61− build-depends: base >= 4.6 && < 5.0
62− , bytestring >= 0.10 && < 0.11
63− , cassava >= 0.4 && < 0.5
64− , io-streams >= 1.1 && < 1.2
65− , vector >= 0.10 && < 0.11
60+ ghc-options: -Wall -fwarn-incomplete-uni-patterns
61+ build-depends:
6662
6763--------------------------------------------------------------------------------
6864executable tutorial
6965 default-language: Haskell2010
70− hs-source-dirs: bin
71− main-is: tutorial.hs
72− ghc-options: -O2 -Wall -Werror -rtsopts
73− 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
7469
7570 if !flag(tutorial)
7671 buildable: False
72+
7773 else
78− build-depends: base
79− , cassava-streams
80− , io-streams
74+ build-depends:
75+ , base
76+ , cassava-streams
77+ , io-streams
8178
8279--------------------------------------------------------------------------------
8380test-suite test
84− type: exitcode-stdio-1.0
81+ import: dependencies
82+ type: exitcode-stdio-1.0
8583 default-language: Haskell2010
86− hs-source-dirs: test
87− main-is: test.hs
88− ghc-options: -O2 -Wall -Werror
89− build-depends: base
90− , QuickCheck >= 2.7 && < 3.0
91− , bytestring
92− , cassava
93− , cassava-streams
94− , io-streams
95− , tasty >= 0.8 && < 1.0
96− , tasty-quickcheck >= 0.8 && < 1.0
97− , 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