minimorph 0.2.0.0 → 0.2.1.0
raw patch · 2 files changed
+17/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ NLP.Minimorph.Number: Plural :: Number
+ NLP.Minimorph.Number: SP :: a -> a -> SingPlu a
+ NLP.Minimorph.Number: Singular :: Number
+ NLP.Minimorph.Number: [pl] :: SingPlu a -> a
+ NLP.Minimorph.Number: [sg] :: SingPlu a -> a
+ NLP.Minimorph.Number: data Number
+ NLP.Minimorph.Number: data SingPlu a
+ NLP.Minimorph.Number: fromSP :: Number -> SingPlu a -> a
+ NLP.Minimorph.Number: instance GHC.Classes.Eq NLP.Minimorph.Number.Number
+ NLP.Minimorph.Number: instance GHC.Classes.Eq a => GHC.Classes.Eq (NLP.Minimorph.Number.SingPlu a)
+ NLP.Minimorph.Number: instance GHC.Show.Show NLP.Minimorph.Number.Number
+ NLP.Minimorph.Number: instance GHC.Show.Show a => GHC.Show.Show (NLP.Minimorph.Number.SingPlu a)
Files
- NLP/Minimorph/Number.hs +15/−0
- minimorph.cabal +2/−1
+ NLP/Minimorph/Number.hs view
@@ -0,0 +1,15 @@+module NLP.Minimorph.Number where++-- | Singular and Plural.+data SingPlu a = SP+ { sg :: a+ , pl :: a+ }+ deriving (Show, Eq)++data Number = Singular | Plural+ deriving (Eq, Show)++fromSP :: Number -> SingPlu a -> a+fromSP Singular = sg+fromSP Plural = pl
minimorph.cabal view
@@ -5,7 +5,7 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- minor or non-breaking API additions -- | | | +--- code changes with no API change-version: 0.2.0.0+version: 0.2.1.0 synopsis: English spelling functions with an emphasis on simplicity. description: A set of simplistic functions capturing the more regular parts of English spelling (for generation, not parsing).@@ -34,6 +34,7 @@ library exposed-modules: NLP.Minimorph.English+ NLP.Minimorph.Number NLP.Minimorph.Util build-depends: base < 5