@@ -1,18 +1,17 @@
1−--------------------------------------------------------------------------------
2−name: cassava-streams
3−version: 0.3.0.2
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-2018 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, GHC==8.0.2
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,82 +23,69 @@ extra-source-files:
2423 README.md
2524 CHANGES.md
2625 test/*.csv
27− stack.yaml
2826
2927--------------------------------------------------------------------------------
3028source-repository head
3129 type: git
3230 location: https://github.com/pjones/cassava-streams.git
3331
34−--------------------------------------------------------------------------------
35−flag maintainer
36− description: Enable settings for the package maintainer.
37− manual: True
38− default: False
39−
4032--------------------------------------------------------------------------------
4133flag tutorial
4234 description: Build the tutorial binary (useful for profiling).
43− manual: True
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: -Wall -fwarn-incomplete-uni-patterns
58−
59− if flag(maintainer)
60− ghc-options: -Werror
61−
62− build-depends: base >= 4.8 && < 5.0
63− , bytestring >= 0.10 && < 0.11
64− , cassava >= 0.4 && < 0.6
65− , io-streams >= 1.1 && < 1.6
66− , vector >= 0.10 && < 0.13
60+ ghc-options: -Wall -fwarn-incomplete-uni-patterns
61+ build-depends:
6762
6863--------------------------------------------------------------------------------
6964executable tutorial
7065 default-language: Haskell2010
71− hs-source-dirs: bin
72− main-is: tutorial.hs
73− ghc-options: -Wall -fwarn-incomplete-uni-patterns -rtsopts
74−
75− if flag(maintainer)
76− ghc-options: -Werror
77− 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
7869
7970 if !flag(tutorial)
8071 buildable: False
72+
8173 else
82− build-depends: base
83− , cassava-streams
84− , io-streams
74+ build-depends:
75+ , base
76+ , cassava-streams
77+ , io-streams
8578
8679--------------------------------------------------------------------------------
8780test-suite test
88− type: exitcode-stdio-1.0
81+ import: dependencies
82+ type: exitcode-stdio-1.0
8983 default-language: Haskell2010
90− hs-source-dirs: test
91− main-is: test.hs
92− ghc-options: -Wall -fwarn-incomplete-uni-patterns
93−
94− if flag(maintainer)
95− ghc-options: -Werror
96−
97− build-depends: base
98− , QuickCheck >= 2.7 && < 3.0
99− , bytestring
100− , cassava
101− , cassava-streams
102− , io-streams
103− , tasty >= 0.8 && < 1.1
104− , tasty-quickcheck >= 0.8 && < 1.0
105− , 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