| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Shared
Description
Additional classes that help in comparing values in tests.
Documentation
class HasShape a where Source #
Things that have shape.
Instances
| HasShape CInt Source # | |
| HasShape Int64 Source # | |
| HasShape Z1 Source # | |
| HasShape Double Source # | |
| HasShape Float Source # | |
| HasShape (RepConcrete y) => HasShape (Concrete y) Source # | |
| Foldable t => HasShape (t a) Source # | |
| (KnownNat n, PrimElt a) => HasShape (Ranked n a) Source # | |
| KnownShS sh => HasShape (Shaped sh a) Source # | |
class Linearizable a b | a -> b where Source #
Things that can be linearized, i.e. converted to a list.
Instances
| Linearizable CInt CInt Source # | |
| Linearizable Int64 Int64 Source # | |
| Linearizable Z1 Z1 Source # | |
| Linearizable Double Double Source # | |
| Linearizable Float Float Source # | |
| Linearizable (RepConcrete y) a => Linearizable (Concrete y) a Source # | |
| Foldable t => Linearizable (t a) a Source # | |
| (Storable a, PrimElt a) => Linearizable (Ranked n a) a Source # | |
| (Storable a, PrimElt a) => Linearizable (Shaped sh a) a Source # | |