git.iko.soy/typeable/inflections-hs
on b8bd4a4 help sign in
5 files changed+104−19
since splitsnapshots
unifiedsplit
README.md+5−4 Text/Inflections/Ordinal.hs+1 inflections.cabal+9−9 stack.yaml+14−1 stack.yaml.lock+75−5
README.md+5−4
@@ -49,10 +49,11 @@ If you want to specify a custom default replacement or approximation table for
4949the `transliterate` function, you should instead call the `transliterateCustom`
5050function which accepts a String for replacements and a Map for substitution.
5151
52−## Future work
52+## TODO
5353
54−Ideally, we want to implement other functions found in the Rails
55−inflections library. If you need one of those functions, please submit a pull request!
54+I'd like this library to implement other functions found in the Rails
55+inflections library. If you need one of those functions, please submit a pull
56+request!
5657
5758## Further documentation
5859
@@ -72,5 +73,5 @@ MIT, see [the LICENSE file](LICENSE).
7273Do you want to contribute to this project? Please take a look at our [contributing guideline](/docs/CONTRIBUTING.md) to know how you can help us build it.
7374
7475---
75−<img src="https://cdn.stackbuilders.com/media/images/Sb-supports.original.png" alt="Stack Builders" width="50%"></img>
76+<img src="https://www.stackbuilders.com/media/images/Sb-supports.original.png" alt="Stack Builders" width="50%"></img>
7677[Check out our libraries](https://github.com/stackbuilders/) | [Join our team](https://www.stackbuilders.com/join-us/)
Text/Inflections/Ordinal.hs+1
@@ -16,6 +16,7 @@ module Text.Inflections.Ordinal
1616 , ordinal )
1717where
1818
19+import Data.Monoid ((<>))
1920import Data.Text (Text)
2021import qualified Data.Text as T
2122
inflections.cabal+9−9
@@ -48,10 +48,10 @@ library
4848 else
4949 ghc-options: -O2 -Wall
5050 build-depends: base >= 4.6 && < 5.0
51− , exceptions
52− , megaparsec
53− , text
54− , unordered-containers
51+ , exceptions >= 0.6 && < 0.11
52+ , megaparsec >= 7.0.1 && < 10.0
53+ , text >= 0.2 && < 1.3
54+ , unordered-containers >= 0.2.7 && < 0.3
5555 if !impl(ghc >= 7.10)
5656 build-depends: void == 0.7.*
5757
@@ -62,13 +62,13 @@ test-suite test
6262 hs-source-dirs: test
6363 main-is: Spec.hs
6464 build-depends: inflections
65− , QuickCheck
65+ , QuickCheck >= 2.7.6 && < 3.0
6666 , base >= 4.6 && < 5.0
67− , containers
68− , hspec
69− , hspec-megaparsec
67+ , containers >= 0.5 && < 0.7
68+ , hspec >= 2.0 && < 3.0
69+ , hspec-megaparsec >= 2.0 && < 3.0
7070 , megaparsec
71− , text
71+ , text >= 0.2 && < 1.3
7272 if !impl(ghc >= 7.10)
7373 build-depends: void == 0.7.*
7474
stack.yaml+14−1
@@ -1 +1,14 @@
1−resolver: lts-21.3
1+---
2+resolver: lts-16.13
3+
4+extra-deps:
5+ - hspec-megaparsec-2.1.0
6+ - hspec-expectations-0.8.2
7+ - hspec-2.5.6
8+ - hspec-core-2.5.6
9+ - hspec-discover-2.5.6
10+ - parser-combinators-1.0.0
11+ - HUnit-1.6.0.0
12+ - QuickCheck-2.12.2
13+ - quickcheck-io-0.2.0
14+ - megaparsec-9.0.0
stack.yaml.lock+75−5
@@ -3,10 +3,80 @@
33# For more information, please see the documentation at:
44# https://docs.haskellstack.org/en/stable/lock_files
55
6−packages: []
6+packages:
7+- completed:
8+ hackage: hspec-megaparsec-2.1.0@sha256:e4dfe9f9c750352f4ffaef4137ea907e457c5ac9042197e11f411f263296372a,2106
9+ pantry-tree:
10+ size: 385
11+ sha256: 17337afa3964b6caee5d2e713a82c38a8909a509bea74c6d6855e1800c638f99
12+ original:
13+ hackage: hspec-megaparsec-2.1.0
14+- completed:
15+ hackage: hspec-expectations-0.8.2@sha256:e2db24881baadc2d9d23b03cb629e80dcbda89a6b04ace9adb5f4d02ef8b31aa,1594
16+ pantry-tree:
17+ size: 602
18+ sha256: cba2c119c85cf68a18d35cccb365d032359442c82ceb93b295020609712d791f
19+ original:
20+ hackage: hspec-expectations-0.8.2
21+- completed:
22+ hackage: hspec-2.5.6@sha256:78d5a74b150829109732c860e140c34a13e0b62b336c523d056b93d6e39ca28f,1850
23+ pantry-tree:
24+ size: 594
25+ sha256: 35d42575b9bb98c6ef9253e0e854025da311e3525feb4fa49c11c0dd08ee821e
26+ original:
27+ hackage: hspec-2.5.6
28+- completed:
29+ hackage: hspec-core-2.5.6@sha256:7f3ad1805ad44abfb9556aa0bebc70c477f47deae415e5da355f905c78f6d544,4583
30+ pantry-tree:
31+ size: 3600
32+ sha256: 293d58ded3522f0f5b52e5e2ffaba565f6c0c6388bf04a4eb48e234ec225c96d
33+ original:
34+ hackage: hspec-core-2.5.6
35+- completed:
36+ hackage: hspec-discover-2.5.6@sha256:d411cc40a28548ebc7c0d25738463037137820fd1549740209033f6ac9852377,2243
37+ pantry-tree:
38+ size: 1080
39+ sha256: 3ab627fa20515b809cdae9cd61c175849462061ff1c0f2b74798d153aba0d423
40+ original:
41+ hackage: hspec-discover-2.5.6
42+- completed:
43+ hackage: parser-combinators-1.0.0@sha256:7374d14cd3b38af0c7f7333049d6af1ccbbe6009deaa66e18701c2194e48f253,1884
44+ pantry-tree:
45+ size: 725
46+ sha256: ea2b83e0b1ddd632012a4ee4d4e87b73038e7be3f9e999a65788d01064bf713a
47+ original:
48+ hackage: parser-combinators-1.0.0
49+- completed:
50+ hackage: HUnit-1.6.0.0@sha256:8014b27c884becd8041214a1ab263fa92244ca62700a911aff604a1047869298,1570
51+ pantry-tree:
52+ size: 878
53+ sha256: 270a6f8d6ef23eba3a9a1697aa244576abb168d10cb8e4736cf4add2b09eb650
54+ original:
55+ hackage: HUnit-1.6.0.0
56+- completed:
57+ hackage: QuickCheck-2.12.2@sha256:e9497e349f8f9056b0f319c61fdb138dd1c134b2b87c72981e1e5de1c81aff75,6332
58+ pantry-tree:
59+ size: 2046
60+ sha256: c587a85bbb0c31dfaa67acb17175a723a8669c4221b1af63b460253fb4657bd3
61+ original:
62+ hackage: QuickCheck-2.12.2
63+- completed:
64+ hackage: quickcheck-io-0.2.0@sha256:7bf0b68fb90873825eb2e5e958c1b76126dcf984debb998e81673e6d837e0b2d,1133
65+ pantry-tree:
66+ size: 223
67+ sha256: afaa27fbf8b35aa7ce174abd9c59a84a12fd7f3d08300c3280b22c1d204f11ca
68+ original:
69+ hackage: quickcheck-io-0.2.0
70+- completed:
71+ hackage: megaparsec-9.0.0@sha256:920d1e469056c746b532333a078c2a9a195fab5e860e0c9734ee92a28c2bfb65,3117
72+ pantry-tree:
73+ size: 1447
74+ sha256: 26c1c24e343cfa6b2c55715fff4b8608e527a6b6ad3d510e328e0a228f979a7d
75+ original:
76+ hackage: megaparsec-9.0.0
777snapshots:
878- completed:
9− sha256: 97710f56bf093fca0ee5d8dbe19d96b654c752e405b66795b4baedd84a794c60
10− size: 640010
11− url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/21/3.yaml
12− original: lts-21.3
79+ size: 532381
80+ url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/13.yaml
81+ sha256: 6ee17f7996e5bc75ae4406250841f1362ad4196418a4d90a0615ff4f26ac98df
82+ original: lts-16.13