packages feed

phonetic-languages-constraints 0.3.1.0 → 0.3.2.0

raw patch · 3 files changed

+7/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -8,3 +8,7 @@  * Third version revised B. Changed the names of the modules so that now they are not ambiguous with those analogous ones from the deprecated package phonetic-languages-constaints. +## 0.3.2.0 -- 2020-11-12++* Third version revised C. Fixed issue with inner unneeded sorting and nubbing in the readMaybeEC function. +
Languages/UniquenessPeriods/Vector/Constraints/Encoded.hs view
@@ -37,7 +37,7 @@ import Text.Read (readMaybe) import Data.Maybe import qualified Data.Vector as VB-import Data.List (sort,nub)+--import Data.List import Languages.UniquenessPeriods.Vector.Constraints  data EncodedContraints a b = E a | Q a a a a a | T a a a a | SA a a b | SB a a b | F a a a deriving (Eq, Ord)@@ -51,7 +51,7 @@  | null xs = Nothing  | n >=0 && n <= 9 =      let h = take 1 xs-         ts = nub . sort . filter (\x -> x >= '0' && [x] <= show n) . drop 1 $ xs in+         ts = filter (\x -> x >= '0' && [x] <= show n) . drop 1 $ xs in       case h of        "E" -> Just (E (fromMaybe 0 (readMaybe (take 1 . tail $ xs)::Maybe Int)))        "F" -> let (y,z) = (readMaybe (take 1 ts)::Maybe Int, readMaybe (take 1 . drop 1 $ ts)) in
phonetic-languages-constraints.cabal view
@@ -2,7 +2,7 @@ -- For further documentation, see http://haskell.org/cabal/users-guide/  name:                phonetic-languages-constraints-version:             0.3.1.0+version:             0.3.2.0 synopsis:            Constraints to filter the needed permutations description:         Provides several the most important variants of constraints. Can be used with the phonetic-languages-common series of package. homepage:            https://hackage.haskell.org/package/phonetic-languages-constraints