packages feed

case-insensitive-match-0.1.0.0: case-insensitive-match.cabal

name:                   case-insensitive-match
version:                0.1.0.0

license:                BSD3
license-file:           LICENSE
copyright:              (c) 2016 Michael Hatfield

author:                 Michael Hatfield
maintainer:             github@michael-hatfield.com
homepage:               https://github.com/mikehat/random-strings
bug-reports:            https://github.com/mikehat/random-strings

synopsis:               A simplified, faster way to do case-insensitive matching.
description:

    A way to do case-insensitive string matching and comparison with less
    overhead and more speed. The 'Data.CaseInsensitive.Eq' module offers
    simplified syntax and optimized instances for 'ByteString', 'String' and
    'Text'. In particular, the 'ByteString' implementation assumes ISO-8859-1
    (8-bit) encoding and performs benchmark testing significantly faster than
    other implementations.

stability:              experimental
category:               Text
build-type:             Simple
cabal-version:          >=1.10

extra-source-files:       README.markdown
                        , CHANGELOG

source-repository head
    type:               git
    location:           git://github.com/mikehat/case-insensitive-match.git
    branch:             master

source-repository this
    type:               git
    location:           git://github.com/mikehat/case-insensitive-match.git
    branch:             master
    tag:                0.1.0.0


library
    exposed-modules:      Data.CaseInsensitive.Eq
                        , Data.CaseInsensitive.Ord
                        , Data.CaseInsensitive

-- Consider commenting out the previous line to avoid an impolite naming
-- conflict with the case-insensitive package. If building with cabal, a naming
-- conflict shouldn't happen unless asking for it with build-depends.

    build-depends:        base ==4.*
                        , bytestring
                        , text

    hs-source-dirs:     lib
    default-language:   Haskell2010


test-suite test-basics
    type:               exitcode-stdio-1.0
    main-is:            test-basics.hs

    build-depends:        base ==4.*
                        , case-insensitive-match
                        , QuickCheck ==2.*
                        , mtl ==2.*
                        , bytestring ==0.*
                        , text ==1.*

    hs-source-dirs:     src
    default-language:   Haskell2010


benchmark bench-others
    type:               exitcode-stdio-1.0
    ghc-options:        -O2
    main-is:            bench-others.hs

    build-depends:        base ==4.*
                        , bytestring ==0.*
                        , text ==1.*
                        , case-insensitive-match
                        , case-insensitive ==1.*
                        , random-strings <1.0
                        , criterion

    hs-source-dirs:     src
    default-language:   Haskell2010


benchmark bench-tagsoup
    type:               exitcode-stdio-1.0
    ghc-options:        -O2
    main-is:            bench-tagsoup.hs

    build-depends:        base ==4.*
                        , bytestring == 0.*
                        , case-insensitive ==1.*
                        , case-insensitive-match
                        , criterion
                        , tagsoup

    hs-source-dirs:     src
    default-language:   Haskell2010

executable readme-example
    ghc-options:        -O2
    main-is:            readme-example.hs

    build-depends:        base
                        , case-insensitive-match
                        , bytestring

    hs-source-dirs:     src
    default-language:   Haskell2010