intermediate-structures 0.1.0.0 → 0.1.1.0
raw patch · 4 files changed
+21/−3 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.IntermediateStructures1: inter' :: (a -> b) -> (a -> c) -> (a -> b -> c -> d) -> a -> d
+ Data.IntermediateStructures1: swapinter' :: (a -> c) -> (a -> b) -> (a -> b -> c -> d) -> a -> d
Files
- CHANGELOG.md +4/−0
- Data/IntermediateStructures1.hs +13/−1
- README.md +2/−0
- intermediate-structures.cabal +2/−2
CHANGELOG.md view
@@ -4,3 +4,7 @@ * First version. Released on an unsuspecting world. The function mapI is taken from the mmsyn5 package. This inspired some more general functionality. +## 0.1.1.0 -- 2024-01-06++* First version revised A. Added two new functions.+
Data/IntermediateStructures1.hs view
@@ -8,7 +8,7 @@ -- -- The function 'mapI' is taken from the [mmsyn5](https://hackage.haskell.org/package/mmsyn5) package. This inspired some more general functionality. -{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE NoImplicitPrelude, BangPatterns #-} {-# OPTIONS_HADDOCK -show-extensions #-} @@ -19,7 +19,9 @@ , map2I -- * Generalized construction functions for some other ones (generative functions) , inter+ , inter' , swapinter+ , swapinter' ) where @@ -46,4 +48,14 @@ swapinter :: (a -> c) -> (a -> b) -> (a -> b -> c -> d) -> a -> d swapinter fc fb f3d x = f3d x (fb x) (fc x) {-# INLINE swapinter #-}++-- | A variant of 'inter' with \'stricter\' calculation scheme. Can be in many cases more efficient.+inter' :: (a -> b) -> (a -> c) -> (a -> b -> c -> d) -> a -> d+inter' fb fc f3d !x = f3d x (fb x) (fc x) +{-# INLINE inter' #-}++-- | A variant of the 'swapinter' with \'stricter\' calculation scheme. Can be in many cases more efficient.+swapinter' :: (a -> c) -> (a -> b) -> (a -> b -> c -> d) -> a -> d+swapinter' fc fb f3d !x = f3d x (fb x) (fc x)+{-# INLINE swapinter' #-}
README.md view
@@ -7,6 +7,8 @@ On the 05/01/2024 Emma starts a world tour with [André Rieu and Johann Strauss Orchestra](https://www.andrerieu.com). +On the 06/01/2024 there are a feast of Epiphany, and Sophie's Kok, a sister of Emma, 19th Birthday (she is 18). Therefore, the version 0.1.1.0 is devoted also to her.+ Besides, you can support Ukraine and Ukrainian people. All support is welcome, including donations for the needs of the Ukrainian army, IDPs and refugees.
intermediate-structures.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: intermediate-structures-version: 0.1.0.0+version: 0.1.1.0 synopsis: Some simple functions to deal with transformations from structures to other ones, basically lists. @@ -25,7 +25,7 @@ import: warnings exposed-modules: Data.IntermediateStructures1 -- other-modules:- other-extensions: NoImplicitPrelude+ other-extensions: NoImplicitPrelude, BangPatterns build-depends: base >=4.13 && <5 hs-source-dirs: . default-language: Haskell2010