packages feed

text-manipulate-0.2.0: text-manipulate.cabal

name:                  text-manipulate
version:               0.2.0
synopsis:              Case conversion, word boundary manipulation, and textual subjugation.
homepage:              https://github.com/brendanhay/text-manipulate
license:               OtherLicense
license-file:          LICENSE
author:                Brendan Hay
maintainer:            Brendan Hay <brendan.g.hay@gmail.com>
copyright:             Copyright (c) 2014-2015 Brendan Hay
category:              Data, Text
build-type:            Simple
extra-source-files:    README.md
cabal-version:         >= 1.10

description:
    Manipulate identifiers and structurally non-complex pieces
    of text by delimiting word boundaries via a combination of whitespace,
    control-characters, and case-sensitivity.
    .
    Has support for common idioms like casing of programmatic variable names,
    taking, dropping, and splitting by word, and modifying the first character
    of a piece of text.
    .
    /Caution:/ this library makes heavy use of the <http://hackage.haskell.org/package/text text>
    library's internal loop optimisation framework. Since internal modules are not
    guaranteed to have a stable API there is potential for build breakage when
    the text dependency is upgraded. Consider yourself warned!

source-repository head
    type:     git
    location: git://github.com/brendanhay/text-manipulate.git

library
    default-language:  Haskell2010
    hs-source-dirs:    src
    ghc-options:       -Wall

    exposed-modules:
          Data.Text.Manipulate
        , Data.Text.Lazy.Manipulate

    other-modules:
          Data.Text.Manipulate.Internal.Fusion
        , Data.Text.Manipulate.Internal.Types

    build-depends:
          base >= 4.5 && < 5
        , text >= 1.1

benchmark benchmarks
    type:              exitcode-stdio-1.0
    default-language:  Haskell2010
    main-is:           Main.hs
    hs-source-dirs:    bench
    ghc-options:       -Wall -O2 -threaded -with-rtsopts=-T

    build-depends:
          base
        , criterion       >= 1.0.0.2
        , text-manipulate
        , text

test-suite tests
    type:              exitcode-stdio-1.0
    default-language:  Haskell2010
    hs-source-dirs:    test
    main-is:           Main.hs
    ghc-options:       -Wall -threaded

    build-depends:
          base
        , text-manipulate
        , tasty           >= 0.8
        , tasty-hunit     >= 0.8
        , text