mirror of
https://github.com/typeable/inflections-hs.git
synced 2024-09-11 06:05:33 +03:00
This solves the following issues: * #18 — we switch to ‘Text’ and most algorithms are re-written for speed, so speed up about ×10 or better is quite possible (we need benchmarks to actually check). * #19 — the library exports no partial functions now. The change is quite major, but it's in single commit because most things it influences are interconnected.
80 lines
3.0 KiB
Plaintext
80 lines
3.0 KiB
Plaintext
name: inflections
|
||
version: 0.2.0.1
|
||
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
|
||
, Text.Inflections.Parse.Types
|
||
|
||
other-modules: Text.Inflections.Data
|
||
, Text.Inflections.Parameterize
|
||
, Text.Inflections.Humanize
|
||
, Text.Inflections.Underscore
|
||
, Text.Inflections.Camelize
|
||
, Text.Inflections.Dasherize
|
||
, Text.Inflections.Ordinal
|
||
, Text.Inflections.Titleize
|
||
, Text.Inflections.Transliterate
|
||
, Text.Inflections.Parse.Acronym
|
||
, Text.Inflections.Parse.SnakeCase
|
||
, Text.Inflections.Parse.CamelCase
|
||
|
||
if flag(dev)
|
||
ghc-options: -Wall -Werror
|
||
else
|
||
ghc-options: -O2 -Wall
|
||
build-depends: base >= 4.6 && < 4.10
|
||
, containers >= 0.5 && < 0.6
|
||
, exceptions >= 0.6 && < 0.9
|
||
, megaparsec >= 5.0 && < 6.0
|
||
, text >= 0.2 && < 1.3
|
||
, unordered-containers >= 0.2.7 && < 0.3
|
||
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.2 && < 4.10
|
||
, hspec >= 2.0 && < 3.0
|
||
, megaparsec >= 5.0 && < 6.0
|
||
, text >= 0.2 && < 1.3
|
||
if flag(dev)
|
||
ghc-options: -Wall -Werror
|
||
else
|
||
ghc-options: -O2 -Wall
|
||
default-language: Haskell2010
|
||
other-modules: Text.Inflections.HumanizeSpec
|
||
, Text.Inflections.OrdinalSpec
|
||
, Text.Inflections.PropertiesSpec
|
||
, Text.Inflections.TitleizeSpec
|
||
, Text.Inflections.UnderscoreSpec
|
||
, Text.InflectionsSpec
|