packages feed

tibetan-utils 0.1.0.1 → 0.1.0.2

raw patch · 4 files changed

+17/−8 lines, 4 filesdep ~hspecdep ~hspec-megaparsecdep ~megaparsecPVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

Dependency ranges changed: hspec, hspec-megaparsec, megaparsec, text-show, tibetan-utils

API changes (from Hackage documentation)

+ Text.Megaparsec.Lexer.Tibetan: readBo :: String -> Maybe Integer

Files

src/Text/Megaparsec/Char/Tibetan.hs view
@@ -4,5 +4,6 @@ import Text.Megaparsec.Text  -- | Parse a consonant+-- consonantCharBo :: Parser Char consonantCharBo = oneOf ("ཨཅཆརཏཡཕཙཚཛའསདབངམགལཞཟཤཀཁཔནཐཇཉཝཧ" :: String)
src/Text/Megaparsec/Lexer/Tibetan.hs view
@@ -3,17 +3,21 @@ -- | Parser to parse Tibetan numerals module Text.Megaparsec.Lexer.Tibetan     ( parseNumber+    , readBo     ) where  import Data.Composition+import Data.Either.Combinators import qualified Data.Text as T import Text.Megaparsec import Text.Megaparsec.Text import Text.Megaparsec.Prim import System.Environment-import Data.Either.Combinators  -- | Yields a command line parser in case you want a command-line executable for use with another language+--+-- > λ > readBo "༣༢༠༥"+-- > 3205 readBo :: String -> Maybe Integer readBo = rightToMaybe . (runParser parseNumber "") . T.pack 
src/TextShow/Data/Integral/Tibetan.hs view
@@ -1,3 +1,4 @@+-- | Module to display positive integral values as strings module TextShow.Data.Integral.Tibetan ( builderBo                                       , showBo) where @@ -5,6 +6,9 @@ import TextShow  -- | Display positive integer as a `String`+--+-- > λ > showBo 312+-- > Just "༣༡༢" showBo :: Integer -> Maybe String showBo = (fmap toString) . builderBo 
tibetan-utils.cabal view
@@ -1,5 +1,5 @@ name: tibetan-utils-version: 0.1.0.1+version: 0.1.0.2 cabal-version: >=1.10 build-type: Simple license: BSD3@@ -26,10 +26,10 @@         TextShow.Data.Integral.Tibetan     build-depends:         base >=4.7 && <5,-        megaparsec >=5.0.1 && <5.1,+        megaparsec >=5.1.2 && <5.2,         text >=1.2.2.1 && <1.3,         composition >=1.0.2.1 && <1.1,-        text-show ==3.4.*,+        text-show >=3.4.1.1 && <3.5,         either >=4.4.1.1 && <4.5     default-language: Haskell2010     default-extensions: OverloadedStrings@@ -40,11 +40,11 @@     main-is: Spec.hs     build-depends:         base >=4.9.0.0 && <4.10,-        tibetan-utils >=0.1.0.1 && <0.2,-        hspec >=2.2.4 && <2.3,-        hspec-megaparsec >=0.2.1 && <0.3,+        tibetan-utils >=0.1.0.2 && <0.2,+        hspec >=2.3.2 && <2.4,+        hspec-megaparsec >=0.3.0 && <0.4,         text >=1.2.2.1 && <1.3,-        megaparsec >=5.0.1 && <5.1+        megaparsec >=5.1.2 && <5.2     default-language: Haskell2010     hs-source-dirs: test     ghc-options: -threaded -rtsopts -with-rtsopts=-N