packages feed

csv-conduit-1.0.1.0: csv-conduit.cabal

name:               csv-conduit
version:            1.0.1.0
synopsis:
  A flexible, fast, conduit-based CSV parser library for Haskell.

homepage:           http://github.com/dmvianna/csv-conduit
license:            BSD3
license-file:       LICENSE
author:             Ozgun Ataman
maintainer:         Daniel Vianna <dmvianna@gmail.com>
category:           Data, Conduit, CSV, Text
build-type:         Simple
cabal-version:      >=1.10
tested-with:
  GHC ==8.2.2
   || ==8.4.4
   || ==8.6.5
   || ==8.8.3
   || ==8.8.4
   || ==8.10.4
   || ==9.0.1
   || ==9.6.4

description:
  CSV files are the de-facto standard in many situations involving data transfer,
  particularly when dealing with enterprise application or disparate database
  systems.
  .
  While there are a number of CSV libraries in Haskell, at the time of this
  project's start in 2010, there wasn't one that provided all of the following:
  .
  * Full flexibility in quote characters, separators, input/output
  .
  * Constant space operation
  .
  * Robust parsing, correctness and error resiliency
  .
  * Convenient interface that supports a variety of use cases
  .
  * Fast operation
  .
  This library is an attempt to close these gaps. Please note that
  this library started its life based on the enumerator package and
  has recently been ported to work with conduits instead. In the
  process, it has been greatly simplified thanks to the modular nature
  of the conduits library.
  .
  Following the port to conduits, the library has also gained the
  ability to parameterize on the stream type and work both with
  ByteString and Text.
  .
  For more documentation and examples, check out the README at:
  .
  <http://github.com/dmvianna/csv-conduit>
  .

extra-source-files:
  changelog.md
  README.md
  test/test-mac-excel.csv
  test/test.csv
  test/Test.hs
  test/test.xls

flag lib-Werror
  default: False
  manual:  True

library
  default-language: Haskell2010
  exposed-modules:
    Data.CSV.Conduit
    Data.CSV.Conduit.Conversion
    Data.CSV.Conduit.Parser.ByteString
    Data.CSV.Conduit.Parser.Text
    Data.CSV.Conduit.Types

  other-modules:
    Data.CSV.Conduit.Conversion.Internal
    Data.CSV.Conduit.Monoid

  ghc-options:      -Wall -funbox-strict-fields

  if flag(lib-werror)
    ghc-options: -Werror

  hs-source-dirs:   src
  build-depends:
      array
    , attoparsec          >=0.10
    , base                >=4       && <5
    , blaze-builder
    , bytestring
    , conduit             >=1.3.0   && <2.0
    , conduit-extra
    , containers          >=0.3
    , data-default
    , exceptions          >=0.3
    , ordered-containers
    , primitive
    , resourcet           >=1.1.2.1
    , text
    , transformers
    , vector

test-suite test
  default-language: Haskell2010
  type:             exitcode-stdio-1.0
  main-is:          Test.hs
  ghc-options:      -Wall -Wunused-packages

  if flag(lib-werror)
    ghc-options: -Werror

  hs-source-dirs:   test
  build-depends:
      base                  >=4     && <5
    , bytestring
    , conduit               >=1.3.0
    , containers            >=0.3
    , csv-conduit
    , directory
    , HUnit                 >=1.2
    , ordered-containers
    , test-framework
    , test-framework-hunit
    , text
    , vector

source-repository head
  type:     git
  location: git://github.com/ozataman/csv-conduit.git