File cassava.cabal of Package ghc-cassava

Name:                cassava
Version:             0.4.5.1
x-revision: 1
Synopsis:            A CSV parsing and encoding library
Description:
  A CSV parsing and encoding library optimized for ease of use and high
  performance.
Homepage:            https://github.com/hvr/cassava
License:             BSD3
License-file:        LICENSE
Bug-reports:         https://github.com/hvr/cassava/issues
Copyright:           (c) 2012 Johan Tibell
                     (c) 2012 Bryan O'Sullivan
                     (c) 2011 MailRank, Inc.
Author:              Johan Tibell
Maintainer:          hvr@gnu.org
Category:            Text, Web, CSV
Build-type:          Simple
Cabal-version:       >=1.10
Extra-source-files:  benchmarks/*.csv,
                     examples/*.hs,
                     CHANGES.md
Tested-with:         GHC ==8.0.1, GHC ==7.10.3, GHC ==7.8.4, GHC ==7.6.3, GHC ==7.4.2

Library
  default-language: Haskell2010
  other-extensions:
    BangPatterns
    CPP
    DataKinds
    DefaultSignatures
    DeriveFunctor
    FlexibleContexts
    FlexibleInstances
    KindSignatures
    MultiParamTypeClasses
    OverloadedStrings
    PolyKinds
    Rank2Types
    ScopedTypeVariables
    TypeOperators
    UndecidableInstances

  if impl(ghc >= 8.0)
    other-extensions:
      DataKinds
      PolyKinds

  Exposed-modules:
    Data.Csv
    Data.Csv.Builder
    Data.Csv.Incremental
    Data.Csv.Parser
    Data.Csv.Streaming

  Other-modules:
    Data.Csv.Conversion
    Data.Csv.Conversion.Internal
    Data.Csv.Encoding
    Data.Csv.Types
    Data.Csv.Util

  Build-depends:
    array < 0.6,
    attoparsec >= 0.10.2 && < 0.14,
    base >= 4.5 && < 5,
    blaze-builder < 0.5,
    bytestring < 0.11,
    containers < 0.6,
    deepseq >= 1.1 && < 1.5,
    hashable < 1.3,
    text < 1.3,
    unordered-containers < 0.3,
    vector < 0.13

  -- GHC.Generics lived in `ghc-prim` for GHC 7.2 & GHC 7.4 only
  if impl(ghc < 7.6)
    build-depends: ghc-prim == 0.2.*

  ghc-options: -Wall -O2

Test-suite unit-tests
  default-language: Haskell2010

  Type: exitcode-stdio-1.0
  Main-is: UnitTests.hs
  Build-depends:
    attoparsec,
    base >= 4.5,
    bytestring,
    cassava,
    hashable < 1.3,
    HUnit,
    QuickCheck >= 2.0,
    test-framework,
    test-framework-hunit,
    test-framework-quickcheck2,
    text,
    unordered-containers,
    vector

  hs-source-dirs: tests
  ghc-options: -Wall

Benchmark benchmarks
  default-language: Haskell2010

  Type: exitcode-stdio-1.0
  Main-is: Benchmarks.hs

  Other-modules:
    Data.Csv
    Data.Csv.Conversion
    Data.Csv.Conversion.Internal
    Data.Csv.Encoding
    Data.Csv.Incremental
    Data.Csv.Parser
    Data.Csv.Streaming
    Data.Csv.Types
    Data.Csv.Util

  Build-depends:
    array < 0.6,
    attoparsec >= 0.10.2 && < 0.14,
    base >= 4.5 && < 5,
    blaze-builder < 0.5,
    bytestring < 0.11,
    containers < 0.6,
    criterion >= 1.0,
    deepseq < 1.5,
    hashable < 1.3,
    lazy-csv >= 0.5,
    text < 1.3,
    text,
    unordered-containers < 0.3,
    vector < 0.12

  -- GHC.Generics lived in `ghc-prim` for GHC 7.2 & GHC 7.4 only
  if impl(ghc < 7.6)
    build-depends: ghc-prim == 0.2.*

  ghc-options: -Wall -O2

  -- We cannot depend on the library directly as that creates a
  -- dependency cycle.
  hs-source-dirs: . benchmarks

source-repository head
  type:     git
  location: https://github.com/hvr/cassava.git
openSUSE Build Service is sponsored by