@@ -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,76 +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− 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
4546
4647--------------------------------------------------------------------------------
4748library
49+ import: dependencies
4850 exposed-modules:
4951 System.IO.Streams.Csv
5052 System.IO.Streams.Csv.Tutorial
53+
5154 other-modules:
52− System.IO.Streams.Csv.Encode
5355 System.IO.Streams.Csv.Decode
56+ System.IO.Streams.Csv.Encode
5457
55− hs-source-dirs: src
58+ hs-source-dirs: src
5659 default-language: Haskell2010
57− ghc-options: -O2 -Wall -fwarn-incomplete-uni-patterns
58− ghc-prof-options: -prof -auto-all
59−
60− if flag(maintainer)
61− ghc-options: -Werror
62−
63− build-depends: base >= 4.6 && < 5.0
64− , bytestring >= 0.10 && < 0.11
65− , cassava >= 0.4 && < 0.5
66− , io-streams >= 1.1 && < 1.4
67− , vector >= 0.10 && < 0.12
60+ ghc-options: -Wall -fwarn-incomplete-uni-patterns
61+ build-depends:
6862
6963--------------------------------------------------------------------------------
7064executable tutorial
7165 default-language: Haskell2010
72− hs-source-dirs: bin
73− main-is: tutorial.hs
74− ghc-options: -O2 -Wall -Werror -rtsopts
75− 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
7669
7770 if !flag(tutorial)
7871 buildable: False
72+
7973 else
80− build-depends: base
81− , cassava-streams
82− , io-streams
74+ build-depends:
75+ , base
76+ , cassava-streams
77+ , io-streams
8378
8479--------------------------------------------------------------------------------
8580test-suite test
86− type: exitcode-stdio-1.0
81+ import: dependencies
82+ type: exitcode-stdio-1.0
8783 default-language: Haskell2010
88− hs-source-dirs: test
89− main-is: test.hs
90− ghc-options: -O2 -Wall -Werror
91− build-depends: base
92− , QuickCheck >= 2.7 && < 3.0
93− , bytestring
94− , cassava
95− , cassava-streams
96− , io-streams
97− , tasty >= 0.8 && < 1.0
98− , tasty-quickcheck >= 0.8 && < 1.0
99− , 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