Safe Haskell | None |
---|---|
Language | Haskell2010 |
Definitions found in Haskell's Data.Function.
This module should be imported qualified to avoid clashes with standard Haskell definitions.
Documentation
Finally I can define seq
directly! :-)
Note that this function is less powerful than GHC's seq
, since STG
does not have a rule to force functions, only expressions that reduce to an
algebraic or primitive value. This leads to the fact that STG's seq
is less
powerful than Haskell's, since in Haskell
seq (const ()) () = ()
whereas in the STG
constUnit = (x) -> Unit (); seq (constUnit, Unit) = ERROR