Safe Haskell | None |
---|---|
Language | Haskell2010 |
Common Haskell functions, translated to STG. Use the Monoid
instance
for Program
to mix them.
This module should be imported qualified to avoid clashes with standard Haskell definitions.
- force :: Program
- module Stg.Prelude.Bool
- module Stg.Prelude.Function
- module Stg.Prelude.List
- module Stg.Prelude.Maybe
- module Stg.Prelude.Number
- module Stg.Prelude.Tuple
Documentation
Force a value to normal form and return it.
This function makes heavy use of the fact that the STG is untyped. It currently supports the following types:
- Unit (Unit)
- Maybe (Just, Nothing)
- Bool (True, False)
- Int (Int#)
- Either (Left, Right)
- Tuples (Pair, Triple)
- List (Nil, Cons)
Everything else will run into an error.
module Stg.Prelude.Bool
module Stg.Prelude.Function
module Stg.Prelude.List
module Stg.Prelude.Maybe
module Stg.Prelude.Number
module Stg.Prelude.Tuple