packages feed

phonetic-languages-constraints-array 0.6.1.0 → 0.6.1.1

raw patch · 3 files changed

+8/−4 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -50,3 +50,7 @@ module. Added also validOrdStr to the export list in the module. Some minor documentation improvements.  +## 0.6.1.1 -- 2023-05-23++* Sixth version revised B. Some minor code improvements.+
Phladiprelio/ConstraintsEncoded.hs view
@@ -10,7 +10,7 @@ -- Provides a way to encode the needed constraint with possibly less symbols. -- Uses arrays instead of vectors. -{-# LANGUAGE FlexibleInstances, FlexibleContexts, NoImplicitPrelude #-}+{-# LANGUAGE FlexibleInstances, FlexibleContexts, NoImplicitPrelude, BangPatterns #-}  module Phladiprelio.ConstraintsEncoded (   -- * Data types@@ -198,8 +198,8 @@ -- | Can be thought of as 'filter' ('generalConversion' ... ) @<arrays>@ but is somewhat more efficient. filterGeneralConv :: Int -> String -> [Array Int Int] -> [Array Int Int] filterGeneralConv m cnstrns xs -  | validOrdStr cnstrns = -    filter (\arr -> (\ks -> if ks == "True" || ks == "E" then True else False) . head . head . dropWhile ((/= 1) . length) . drop 1 . iterate (oneChange m arr) . stage1Parsing $ cnstrns) xs+  | validOrdStr cnstrns = let !xss = stage1Parsing cnstrns in  +    filter (\arr -> (\ks -> if ks == "True" || ks == "E" then True else False) . head . head . dropWhile ((/= 1) . length) . drop 1 . iterate (oneChange m arr) $ xss) xs   | otherwise = [] {-# INLINE filterGeneralConv #-} 
phonetic-languages-constraints-array.cabal view
@@ -2,7 +2,7 @@ -- For further documentation, see http://haskell.org/cabal/users-guide/  name:                phonetic-languages-constraints-array-version:             0.6.1.0+version:             0.6.1.1 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. Instead of vectors, uses arrays. homepage:            https://hackage.haskell.org/package/phonetic-languages-constraints-array