Safe Haskell | None |
---|---|
Language | Haskell2010 |
Newtypes with instances implemented using generic combinators.
Synopsis
- newtype Generically a = Generically {
- unGenerically :: a
- newtype FiniteEnumeration a = FiniteEnumeration {
- unFiniteEnumeration :: a
- newtype Generically1 f a = Generically1 {
- unGenerically1 :: f a
Documentation
newtype Generically a Source #
Type with instances derived via Generic
.
Generically | |
|
Instances
newtype FiniteEnumeration a Source #
Type with Enum
instance derived via Generic
with FiniteEnum
option.
Instances
(Generic a, GEnum FiniteEnum (Rep a)) => Enum (FiniteEnumeration a) Source # | |
Defined in Generic.Data.Internal.Generically succ :: FiniteEnumeration a -> FiniteEnumeration a # pred :: FiniteEnumeration a -> FiniteEnumeration a # toEnum :: Int -> FiniteEnumeration a # fromEnum :: FiniteEnumeration a -> Int # enumFrom :: FiniteEnumeration a -> [FiniteEnumeration a] # enumFromThen :: FiniteEnumeration a -> FiniteEnumeration a -> [FiniteEnumeration a] # enumFromTo :: FiniteEnumeration a -> FiniteEnumeration a -> [FiniteEnumeration a] # enumFromThenTo :: FiniteEnumeration a -> FiniteEnumeration a -> FiniteEnumeration a -> [FiniteEnumeration a] # | |
Generic a => Generic (FiniteEnumeration a) Source # | |
Defined in Generic.Data.Internal.Generically type Rep (FiniteEnumeration a) :: Type -> Type # from :: FiniteEnumeration a -> Rep (FiniteEnumeration a) x # to :: Rep (FiniteEnumeration a) x -> FiniteEnumeration a # | |
type Rep (FiniteEnumeration a) Source # | |
Defined in Generic.Data.Internal.Generically |
newtype Generically1 f a Source #
Type with instances derived via Generic1
.
Generically1 | |
|