[Haskell-cafe] Announcing containers 0.5.8.1
Henning Thielemann
lemming at henning-thielemann.de
Wed Aug 31 09:10:22 UTC 2016
On Wed, 31 Aug 2016, David Feuer wrote:
> Use BangPatterns throughout to reduce noise. This extension is now
> required to compile containers.
Btw. there is no strong need for BangPatterns. Instead of
f !x !y = ...
you can write
f = strict2 $ \x y -> ...
{-# INLINE strict2 #-}
strict2 :: (a -> b -> x) -> a -> b -> x
strict2 f a b = (f $! a) $! b
Sometimes I hope that availability of portable libraries would help
non-mainstream compilers to gain ground.
More information about the Haskell-Cafe
mailing list