packages feed

inflections-0.4.0.4: inflections.cabal

name:                inflections
version:             0.4.0.4
synopsis:            Inflections library for Haskell
description:
  Inflections provides methods for singularization, pluralization,
  dasherizing, etc. The library is based on Rails' inflections library.

license:             MIT
license-file:        LICENSE
author:              Justin Leitgeb <justin@stackbuilders.com>
homepage:            https://github.com/stackbuilders/inflections-hs
bug-reports:         https://github.com/stackbuilders/inflections-hs/issues
maintainer:          Justin Leitgeb <justin@stackbuilders.com>
copyright:           2014–2016 Justin Leitgeb
category:            Text
build-type:          Simple
cabal-version:       >=1.10
extra-source-files:  CHANGELOG.md
                   , README.md

source-repository head
  type:            git
  location:        https://github.com/stackbuilders/inflections-hs.git

flag dev
  description:        Turn on development settings.
  manual:             True
  default:            False

library
  exposed-modules:     Text.Inflections

  other-modules:       Text.Inflections.Data
                     , Text.Inflections.Camelize
                     , Text.Inflections.Dasherize
                     , Text.Inflections.Humanize
                     , Text.Inflections.Ordinal
                     , Text.Inflections.Parameterize
                     , Text.Inflections.Parse.CamelCase
                     , Text.Inflections.Parse.SnakeCase
                     , Text.Inflections.Titleize
                     , Text.Inflections.Transliterate
                     , Text.Inflections.Types
                     , Text.Inflections.Underscore

  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -O2 -Wall
  build-depends:       base         >= 4.6   && < 5.0
                     , exceptions   >= 0.6   && < 0.11
                     , megaparsec   >= 7.0.1 && < 8.0
                     , text         >= 0.2   && < 1.3
                     , unordered-containers >= 0.2.7 && < 0.3
  if !impl(ghc >= 7.10)
    build-depends:      void         == 0.7.*

  default-language:    Haskell2010

test-suite test
  type: exitcode-stdio-1.0
  hs-source-dirs: test
  main-is: Spec.hs
  build-depends:       inflections
                     , QuickCheck   >= 2.7.6 && < 3.0
                     , base         >= 4.6   && < 5.0
                     , containers   >= 0.5   && < 0.7
                     , hspec        >= 2.0   && < 3.0
                     , hspec-megaparsec >= 2.0 && < 3.0
                     , megaparsec
                     , text         >= 0.2   && < 1.3
  if !impl(ghc >= 7.10)
    build-depends:      void         == 0.7.*

  if !impl(ghc >= 8.0)
    build-depends:      semigroups   == 0.18.*

  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -O2 -Wall
  default-language:    Haskell2010
  other-modules:       Text.Inflections.DasherizeSpec
                     , Text.Inflections.HumanizeSpec
                     , Text.Inflections.OrdinalSpec
                     , Text.Inflections.ParametrizeSpec
                     , Text.Inflections.Parse.CamelCaseSpec
                     , Text.Inflections.Parse.SnakeCaseSpec
                     , Text.Inflections.TitleizeSpec
                     , Text.Inflections.TransliterateSpec
                     , Text.Inflections.TypesSpec
                     , Text.Inflections.UnderscoreSpec
                     , Text.InflectionsSpec