packages feed

conduit-iconv-0.1.0.0: conduit-iconv.cabal

name:                conduit-iconv
version:             0.1.0.0
synopsis:            Conduit for character encoding conversion.
description:
    @conduit-iconv@ provides a "Data.Conduit#t: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

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