Slide 66
Slide 66 text
inc arr = map (+1) arr
inc :: (Elt a, IsNum a)
=> Acc (Vector a) -> Acc (Vector a)
reifies dictionary of
Num class
extensible set of
surface types
type family EltRepr :: *
type instance EltRepr Int = Int
type instance EltRepr Float = Float
type instance EltRepr (a,b) =(((),EltRepr a),EltRepr b)
type instance EltRepr (a,b,c) = ((((), EltRepr a), ...)
closed set of representation types