packages feed

enumerator-0.4.3.1: enumerator.cabal

name: enumerator
version: 0.4.3.1
synopsis: Implementation of Oleg Kiselyov's left-fold enumerators
license: MIT
license-file: license.txt
author: John Millikin <jmillikin@gmail.com>
maintainer: jmillikin@gmail.com
copyright: Copyright (c) John Millikin 2010
build-type: Simple
cabal-version: >=1.6
category: Data, Enumerator
stability: experimental
homepage: http://john-millikin.com/software/enumerator/
bug-reports: mailto:jmillikin@gmail.com
tested-with: GHC==6.12.1

description:
  Based on Oleg Kiselyov's IterateeM: <http://okmij.org/ftp/Haskell/Iteratee/IterateeM.hs>

extra-source-files:
  Examples/*.hs
  readme.txt

source-repository head
  type: bazaar
  location: http://john-millikin.com/software/enumerator/

-- text-0.11 changed some function names to appease a few bikeshedding idiots
-- in -cafe; to support it, a special compatibility module is needed.
flag text-names-broken

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

  build-depends:
      transformers >= 0.2 && < 0.3
    , bytestring >= 0.9 && < 0.10

  if impl(ghc >= 6.10)
    build-depends:
        base >= 4 && < 5
  else
    build-depends:
        base >= 3 && < 4
      , extensible-exceptions >= 0.1 && < 0.2

  if flag(text-names-broken)
    hs-source-dirs: hs/text-0.11
    build-depends:
      text >= 0.11 && < 0.12
  else
    hs-source-dirs: hs/text-0.10
    build-depends:
      text >= 0.7 && < 0.11

  exposed-modules:
    Data.Enumerator
    Data.Enumerator.IO
    Data.Enumerator.Text

  other-modules:
    Data.Enumerator.Util
    Data.Enumerator.Text.Compat