packages feed

normalization-insensitive-2.0.2: normalization-insensitive.cabal

name:          normalization-insensitive
version:       2.0.2
cabal-version: >=1.10
build-type:    Simple
license:       BSD3
license-file:  LICENSE
copyright:     2011 Bas van Dijk,
               2016 Patrick Pelletier
author:        Bas van Dijk,
               Patrick Pelletier
maintainer:    Patrick Pelletier <code@funwithsoftware.org>
homepage:      https://github.com/ppelleti/normalization-insensitive
bug-reports:   https://github.com/ppelleti/normalization-insensitive/issues
category:      Data, Text, Unicode
synopsis:      Normalization insensitive string comparison
description:   The module @Data.Unicode.NormalizationInsensitive@ provides
               the 'NI' type constructor which can be parameterized by a
               string-like type like: 'String', 'ByteString', 'Text',
               etc.. Comparisons of values of the resulting type will be
               insensitive to normalization.
               .
               This is very similar in spirit to the @case-insensitive@
               package, and is in fact based on the same code.
tested-with:
  GHC==7.10.3,
  GHC==8.6.5

extra-source-files: README.markdown
                  , CHANGELOG
                  , pg2189.txt
                  , stack.yaml

source-repository head
  Type:     git
  Location: https://github.com/ppelleti/normalization-insensitive.git

Library
  ghc-options: -Wall
  build-depends: base       >= 4.7 && < 5
               , bytestring >= 0.9 && < 0.12
               , text       >= 1.1.1 && < 1.3
               , deepseq    >= 1.1 && < 1.5
               , hashable   >= 1.0 && < 1.4
               , unicode-transforms >= 0.1.0.1 && < 0.4
  if !impl(ghc >= 8.0)
    build-depends: semigroups >= 0.18 && < 0.19
  exposed-modules: Data.Unicode.NormalizationInsensitive
                 , Data.Unicode.NormalizationInsensitive.Unsafe
  other-modules: Data.Unicode.NormalizationInsensitive.Internal
  default-language:    Haskell2010

test-suite test-normalization-insensitive
  type:           exitcode-stdio-1.0
  main-is:        test.hs
  hs-source-dirs: test

  build-depends: normalization-insensitive
               , base                 >= 4.7   && < 5
               , bytestring           >= 0.9   && < 0.12
               , text                 >= 1.1.1 && < 1.3
               , hashable             >= 1.0   && < 1.4
               , HUnit                >= 1.2.2 && < 1.7
               , test-framework       >= 0.2.4 && < 0.9
               , test-framework-hunit >= 0.2.4 && < 0.4

  ghc-options: -Wall
  default-language:    Haskell2010

benchmark bench-normalization-insensitive
  type:           exitcode-stdio-1.0
  main-is:        bench.hs
  hs-source-dirs: bench
  other-modules:  NoClass

  ghc-options:    -Wall -O2

  build-depends: normalization-insensitive
               , base                 >= 4.7   && < 5
               , bytestring           >= 0.9   && < 0.12
               , criterion            >= 0.6.1 && < 1.6
               , deepseq              >= 1.1   && < 1.5
  default-language:    Haskell2010