
31 Aug
2016
31 Aug
'16
9:10 a.m.
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.