Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
- class GEnum a where
- genum :: [a]
- genumDefault :: (Generic a, Enum' (Rep a)) => [a]
- toEnumDefault :: (Generic a, Enum' (Rep a)) => Int -> a
- fromEnumDefault :: (GEq a, Generic a, Enum' (Rep a)) => a -> Int
- class Ord a => GIx a where
- rangeDefault :: (GEq a, Generic a, Enum' (Rep a)) => (a, a) -> [a]
- indexDefault :: (GEq a, Generic a, Enum' (Rep a)) => (a, a) -> a -> Int
- inRangeDefault :: (GEq a, Generic a, Enum' (Rep a)) => (a, a) -> a -> Bool
Generic enum class
Nothing
Default definitions for GEnum
genumDefault :: (Generic a, Enum' (Rep a)) => [a] Source
toEnumDefault :: (Generic a, Enum' (Rep a)) => Int -> a Source
Generic Ix class
class Ord a => GIx a where Source
Nothing
Default definitions for GIx
rangeDefault :: (GEq a, Generic a, Enum' (Rep a)) => (a, a) -> [a] Source