Hello!
I have released version 0.0.1 of control-block
. Those of you who enjoy -XBlockArguments
and -XLambdaCase
may find this library useful: it provides variants of frequently-used functions (fmap
, filter
, foldl'
, …) with different argument orders: the function argument is passed last, so that complex functions can be passed anonymously, and case splits for Maybe
and []
can be written even more consisely.
Its only dependencies are indexed-traversable
(imap
, ifoldMap
, …) and witherable
(filter
, mapMaybe
, …) to provide switched versions of those functions as well.