Wrapper around the Haskell library cassava for processing CSV data in constant space via io-streams.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cassava-streams.cabal 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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
  16. description:
  17. The cassava-streams library glues togeter the cassava CSV library
  18. and the io-streams streaming library.
  19. .
  20. See the "System.IO.Streams.Csv.Tutorial" module for a simple tutorial.
  21. --------------------------------------------------------------------------------
  22. extra-source-files:
  23. README.md
  24. CHANGES.md
  25. test/*.csv
  26. build/*.yaml
  27. build/*.nix
  28. --------------------------------------------------------------------------------
  29. source-repository head
  30. type: git
  31. location: https://github.com/pjones/cassava-streams.git
  32. --------------------------------------------------------------------------------
  33. flag maintainer
  34. description: Enable settings for the package maintainer.
  35. manual: True
  36. default: False
  37. --------------------------------------------------------------------------------
  38. flag tutorial
  39. description: Build the tutorial binary (useful for profiling).
  40. default: False
  41. --------------------------------------------------------------------------------
  42. library
  43. exposed-modules:
  44. System.IO.Streams.Csv
  45. System.IO.Streams.Csv.Tutorial
  46. other-modules:
  47. System.IO.Streams.Csv.Encode
  48. System.IO.Streams.Csv.Decode
  49. hs-source-dirs: src
  50. default-language: Haskell2010
  51. ghc-options: -O2 -Wall -fwarn-incomplete-uni-patterns
  52. ghc-prof-options: -prof -auto-all
  53. if flag(maintainer)
  54. ghc-options: -Werror
  55. build-depends: base >= 4.6 && < 5.0
  56. , bytestring >= 0.10 && < 0.11
  57. , cassava >= 0.4 && < 0.5
  58. , io-streams >= 1.1 && < 1.4
  59. , vector >= 0.10 && < 0.12
  60. --------------------------------------------------------------------------------
  61. executable tutorial
  62. default-language: Haskell2010
  63. hs-source-dirs: bin
  64. main-is: tutorial.hs
  65. ghc-options: -O2 -Wall -Werror -rtsopts
  66. ghc-prof-options: -fprof-auto-top -fprof-cafs
  67. if !flag(tutorial)
  68. buildable: False
  69. else
  70. build-depends: base
  71. , cassava-streams
  72. , io-streams
  73. --------------------------------------------------------------------------------
  74. test-suite test
  75. type: exitcode-stdio-1.0
  76. default-language: Haskell2010
  77. hs-source-dirs: test
  78. main-is: test.hs
  79. ghc-options: -O2 -Wall -Werror
  80. build-depends: base
  81. , QuickCheck >= 2.7 && < 3.0
  82. , bytestring
  83. , cassava
  84. , cassava-streams
  85. , io-streams
  86. , tasty >= 0.8 && < 1.0
  87. , tasty-quickcheck >= 0.8 && < 1.0
  88. , vector