packages feed

pipes-text-1.0.0: pipes-text.cabal

cabal-version:      2.2
name:               pipes-text
version:            1.0.0
synopsis:           properly streaming text
description:
  The organization of this package follows the rule:
  .
  * @pipes-text : pipes-bytestring :: text : bytestring@
  .
  Familiarity with the other three packages should give one an idea
  what to expect here. The package has three principal modules,
  @Pipes.Text@ , @Pipes.Text.Encoding@ and @Pipes.Text.IO@; the
  division has more or less the significance it has in the @text@
  library.
  .
  The module @Pipes.Text.IO@ is present as a convenience.  Official
  pipes IO uses @Pipes.ByteString@ together with the bytestring
  decoding functions in @Pipes.Text.Encoding@.  In particular, the
  @Pipes.Text.IO@ functions use Text exceptions, while @Pipes.Text@
  uses the standard pipes practice of breaking with a failed
  parse. Thus, for example, the type of @decodeUtf8@ is
  .
  * @decodeUtf8 :: Monad m => Producer ByteString m r -> Producer Text m (Producer ByteString m r)@
  .
  where any unparsed bytes are returned.

homepage:           https://github.com/pjones/pipes-text
bug-reports:        https://github.com/pjones/pipes-text/issues
license:            BSD-3-Clause
license-file:       LICENSE
author:             Michael Thompson
maintainer:         Peter Jones <pjones@devalot.com>
category:           Text, Pipes
build-type:         Simple
extra-source-files:
  CHANGES.md
  README.md

source-repository head
  type:     git
  location: https://github.com/pjones/pipes-text

flag noio
  default:     False
  description: Use a version of text earlier than 0.11.3

flag maintainer
  description: Enable settings for the package maintainer.
  manual:      True
  default:     False

common dependencies
  build-depends:
    , base               >=4       && <5
    , bytestring         >=0.9.2.1 && <0.12
    , pipes              >=4.0     && <4.4
    , pipes-bytestring   >=1.0     && <2.2
    , pipes-group        ^>=1.0.0
    , pipes-parse        ^>=3.0.0
    , pipes-safe         >=2.1     && <2.4
    , streaming-commons  >=0.1     && <0.3
    , text               >=0.11.2  && <1.3
    , transformers       >=0.2.0.0 && <0.6

common options
  default-language: Haskell2010
  other-extensions: RankNTypes
  ghc-options:
    -Wall -Wno-name-shadowing -Werror=incomplete-record-updates
    -Werror=incomplete-uni-patterns -Werror=missing-home-modules
    -Widentities -Wmissing-export-lists -Wredundant-constraints

  if flag(maintainer)
    ghc-options: -Werror

library
  import:          options,  dependencies
  exposed-modules:
    Pipes.Text
    Pipes.Text.Encoding

  if !flag(noio)
    exposed-modules:
      Pipes.Prelude.Text
      Pipes.Text.IO
      Pipes.Text.Tutorial

    build-depends:   text >=0.11.3 && <1.3

-- test-suite test
--   import:         options, dependencies
--   type:           exitcode-stdio-1.0
--   hs-source-dirs: test
--   main-is:        Test.hs
--   build-depends:
--     , pipes-text
--     , QuickCheck                  ^>=2.13
--     , test-framework              ^>=0.8
--     , test-framework-quickcheck2  ^>=0.3
--
--   other-modules:  Utils