packages feed

mmsyn2 0.3.0.0 → 0.3.1.0

raw patch · 4 files changed

+10/−6 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CaseBi.hs view
@@ -69,7 +69,7 @@      then getBFst' (def, (V.unsafeSlice 0 (V.length vec `quot` 2) vec)) l       else getBFst' (def, (V.unsafeSlice (V.length vec `quot` 2) (V.length vec - (V.length vec `quot` 2)) vec)) l   | otherwise = snd (V.unsafeIndex vec 0)-{-# NOINLINE getBFst' #-}+{-# INLINABLE getBFst' #-}                     -- | The function that uses special realization of the binary search to effectively transform the 'V.Vector' @a@ to 'V.Vector' @b@ instead of simply use  --@@ -138,7 +138,7 @@ sortFst :: (Ord a) => [(a, b)] -> [(a, b)] sortFst xs = if null xs then [] else sortFst (filter (\(x, _) -> compare x (fst (head xs)) == LT) xs) ++ filter (\(x, _) -> x == (fst (head xs))) xs ++    sortFst (filter (\(x, _) -> compare x (fst (head xs)) == GT) xs)-{-# NOINLINE sortFst #-}           +{-# INLINABLE sortFst #-}             -- | Function that prepares the list of @(a, b)@ tuples representing the  --
CaseBi/Unboxed.hs view
@@ -41,7 +41,7 @@   then getBFst' (def, (V.unsafeSlice 0 (V.length vec `quot` 2) vec)) l    else getBFst' (def, (V.unsafeSlice (V.length vec `quot` 2) (V.length vec - (V.length vec `quot` 2)) vec)) l                        | otherwise = snd (V.unsafeIndex vec 0)-{-# NOINLINE getBFst' #-}+{-# INLINABLE getBFst' #-}                     -- | A variant of the 'CaseBi.getBFstV' that operates on the unboxed 'V.Vector'. -- @@ -65,7 +65,7 @@ sortFst :: (Ord a, Unbox a, Unbox b) => [(a, b)] -> [(a, b)] sortFst xs = if null xs then [] else sortFst (filter (\(x, _) -> compare x (fst (head xs)) == LT) xs) ++ filter (\(x, _) -> x == (fst (head xs))) xs ++    sortFst (filter (\(x, _) -> compare x (fst (head xs)) == GT) xs)-{-# NOINLINE sortFst #-}           +{-# INLINABLE sortFst #-}             -- | A variant of the 'CaseBi.sortFstV' that operates on the unboxed 'V.Vector'. --
ChangeLog.md view
@@ -42,5 +42,9 @@  ## 0.3.0.0 -- 2020-10-29 -* Third version. Changed inlining policies so that ghc -ddump-lint does not produce warnings. +* Third version. Changed inlining policies so that ghc -dcore-lint does not produce warnings. ++## 0.3.1.0 -- 2020-10-30++* Third version revised A. Changed inlining policies for self-recursive functions to be {-# INLINABLE #-}. 
mmsyn2.cabal view
@@ -2,7 +2,7 @@ -- see http://haskell.org/cabal/users-guide/  name:                mmsyn2-version:             0.3.0.0+version:             0.3.1.0 synopsis:            The library that can be used for multiple (Ord a) => a -> b transformations description:         The library that can be used for optimization or another representation of multiple (Ord a) => a -> b transformations homepage:            https://oleksandrzhabenko.github.io/mmsyn2