Par and seq
From HaskellWiki
The functionspar
seq
They have the same signature and thus the same use patterns.
The functionpar
seq
par :: a -> b -> b seq :: a -> b -> b
par2
f
f
par2 :: (a -> b -> c) -> (a -> b -> c) par2 f x y = x `par` y `par` f x y
par2
par
par2
par = par2 (\ _x y -> y)
par
See also
- Haskell-Cafe: 'par' - why has it the type a -> b -> b ?
