Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Possibly convenient facilities for constructing constants.
Documentation
class IsValue a where Source #
If a Haskell type is an instance of IsValue
, it means that a
value of that type can be converted to a Futhark PrimValue
.
This is intended to cut down on boilerplate when writing compiler
code - for example, you'll quickly grow tired of writing Constant
(LogVal True) loc
.