@@ -1,17 +1,17 @@
1−--------------------------------------------------------------------------------
2−name: cassava-streams
3−version: 0.3.0.4
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-2019 Peter Jones
10−category: Data, Text, CSV, IO-Streams
11−build-type: Simple
12−cabal-version: 1.18
13−homepage: https://code.devalot.com/open/cassava-streams
14−bug-reports: https://code.devalot.com/open/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
1515description:
1616 The cassava-streams library glues togeter the cassava CSV library
1717 and the io-streams streaming library.
@@ -27,61 +27,65 @@ extra-source-files:
2727--------------------------------------------------------------------------------
2828source-repository head
2929 type: git
30− location: https://code.devalot.com/open/cassava-streams.git
30+ location: https://github.com/pjones/cassava-streams.git
3131
3232--------------------------------------------------------------------------------
3333flag tutorial
3434 description: Build the tutorial binary (useful for profiling).
35− manual: True
36− 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.13
3746
3847--------------------------------------------------------------------------------
3948library
49+ import: dependencies
4050 exposed-modules:
4151 System.IO.Streams.Csv
4252 System.IO.Streams.Csv.Tutorial
53+
4354 other-modules:
44− System.IO.Streams.Csv.Encode
4555 System.IO.Streams.Csv.Decode
56+ System.IO.Streams.Csv.Encode
4657
47− hs-source-dirs: src
58+ hs-source-dirs: src
4859 default-language: Haskell2010
49− ghc-options: -Wall -fwarn-incomplete-uni-patterns
50−
51− build-depends: base >= 4.8 && < 5.0
52− , bytestring >= 0.10 && < 0.11
53− , cassava >= 0.4 && < 0.6
54− , io-streams >= 1.1 && < 1.6
55− , vector >= 0.10 && < 0.13
60+ ghc-options: -Wall -fwarn-incomplete-uni-patterns
61+ build-depends:
5662
5763--------------------------------------------------------------------------------
5864executable tutorial
5965 default-language: Haskell2010
60− hs-source-dirs: bin
61− main-is: tutorial.hs
62− ghc-options: -Wall -fwarn-incomplete-uni-patterns -rtsopts
66+ hs-source-dirs: bin
67+ main-is: tutorial.hs
68+ ghc-options: -Wall -fwarn-incomplete-uni-patterns -rtsopts
6369
6470 if !flag(tutorial)
6571 buildable: False
72+
6673 else
67− build-depends: base
68− , cassava-streams
69− , io-streams
74+ build-depends:
75+ , base
76+ , cassava-streams
77+ , io-streams
7078
7179--------------------------------------------------------------------------------
7280test-suite test
73− type: exitcode-stdio-1.0
81+ import: dependencies
82+ type: exitcode-stdio-1.0
7483 default-language: Haskell2010
75− hs-source-dirs: test
76− main-is: test.hs
77− ghc-options: -Wall -fwarn-incomplete-uni-patterns
78−
79− build-depends: base
80− , QuickCheck >= 2.7 && < 3.0
81− , bytestring
82− , cassava
83− , cassava-streams
84− , io-streams
85− , tasty >= 0.8 && < 1.3
86− , tasty-quickcheck >= 0.8 && < 1.3
87− , 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