Safe Haskell | None |
---|---|
Language | Haskell98 |
Values that can be stored in Repa Arrays.
- class Elt a where
Documentation
Element types that can be used with the blockwise filling functions.
This class is mainly used to define the touch
method. This is used internally
in the imeplementation of Repa to prevent let-binding from being floated
inappropriately by the GHC simplifier. Doing a seq
sometimes isn't enough,
because the GHC simplifier can erase these, and still move around the bindings.
This class supports the generic deriving mechanism,
use deriving instance Elt (TYPE)
Place a demand on a value at a particular point in an IO computation.
touch :: (Generic a, GElt (Rep a)) => a -> IO () Source #
Place a demand on a value at a particular point in an IO computation.
Generic zero value, helpful for debugging.
zero :: (Generic a, GElt (Rep a)) => a Source #
Generic zero value, helpful for debugging.
Generic one value, helpful for debugging.
one :: (Generic a, GElt (Rep a)) => a Source #
Generic one value, helpful for debugging.
Elt Bool Source # | |
Elt Char Source # | |
Elt Double Source # | |
Elt Float Source # | |
Elt Int Source # | |
Elt Int8 Source # | |
Elt Int16 Source # | |
Elt Int32 Source # | |
Elt Int64 Source # | |
Elt Word Source # | |
Elt Word8 Source # | |
Elt Word16 Source # | |
Elt Word32 Source # | |
Elt Word64 Source # | |
(Elt a, Elt b) => Elt (a, b) Source # | |
(Elt a, Elt b, Elt c) => Elt (a, b, c) Source # | |
(Elt a, Elt b, Elt c, Elt d) => Elt (a, b, c, d) Source # | |
(Elt a, Elt b, Elt c, Elt d, Elt e) => Elt (a, b, c, d, e) Source # | |
(Elt a, Elt b, Elt c, Elt d, Elt e, Elt f) => Elt (a, b, c, d, e, f) Source # | |