packages feed

conduit-iconv-0.1.1.0: conduit-iconv.cabal

name:                  conduit-iconv
version:               0.1.1.0
synopsis:              Conduit for character encoding conversion.
description:
    @conduit-iconv@ provides a Conduit for character encoding
    conversion, based on the iconv library.
homepage:              https://github.com/sdroege/conduit-iconv
license:               BSD3
license-file:          LICENSE
author:                Sebastian Dröge
maintainer:            slomo@coaxion.net
category:              Conduit, Text
build-type:            Simple
cabal-version:         >= 1.10

library
  exposed-modules:     Data.Conduit.IConv
  build-depends:       base == 4.*
                     , conduit >= 1.1 && < 1.3
                     , bytestring >= 0.10 && < 0.11
  default-language:    Haskell2010
  ghc-options:         -Wall
  includes:            hsiconv.h
  include-dirs:        cbits
  c-sources:           cbits/hsiconv.c
  if os(darwin) || os(freebsd)
    -- on many systems the iconv api is part of the standard C library
    -- but on some others we have to link to an external libiconv:
    extra-libraries: iconv

test-suite Tests
  type:                exitcode-stdio-1.0
  x-uses-tf:           true
  build-depends:       base == 4.*
                     , QuickCheck >= 2.4
                     , mtl == 2.*
                     , test-framework >= 0.4.1
                     , test-framework-quickcheck2
                     , bytestring
                     , text
                     , conduit
                     , conduit-iconv
  ghc-options:         -Wall
  hs-source-dirs:      tests
  default-language:    Haskell2010
  main-is:             Tests.hs

benchmark Benchmarks
  type:                exitcode-stdio-1.0
  build-depends:       base == 4.*
                     , mtl == 2.*
                     , conduit
                     , bytestring
                     , text
                     , conduit-iconv
                     , criterion
  ghc-options:         -O2 -Wall
  hs-source-dirs:      benchmarks
  default-language:    Haskell2010
  main-is:             Benchmarks.hs

source-repository head
  type:     git
  location: git://github.com/sdroege/conduit-iconv.git