|
Data.Generics.SYB.WithClass.Basics |
|
|
|
Synopsis |
|
|
|
Documentation |
|
module Data.Typeable |
|
module Data.Generics.SYB.WithClass.Context |
|
|
|
|
| Methods | gfoldl :: Proxy ctx -> (forall b c. Data ctx b => w (b -> c) -> b -> w c) -> (forall g. g -> w g) -> a -> w a | Source |
| | gunfold :: Proxy ctx -> (forall b r. Data ctx b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c a | Source |
| | | | | | | Mediate types and unary type constructors
| | | Mediate types and binary type constructors
|
| | Instances | Sat (ctx TyCon) => Data ctx TyCon | Sat (ctx TypeRep) => Data ctx TypeRep | Sat (ctx ()) => Data ctx () | Sat (ctx Ordering) => Data ctx Ordering | Sat (ctx Word64) => Data ctx Word64 | Sat (ctx Word32) => Data ctx Word32 | Sat (ctx Word16) => Data ctx Word16 | Sat (ctx Word8) => Data ctx Word8 | Sat (ctx Word) => Data ctx Word | Sat (ctx Int64) => Data ctx Int64 | Sat (ctx Int32) => Data ctx Int32 | Sat (ctx Int16) => Data ctx Int16 | Sat (ctx Int8) => Data ctx Int8 | Sat (ctx Integer) => Data ctx Integer | Sat (ctx Int) => Data ctx Int | Sat (ctx Double) => Data ctx Double | Sat (ctx Float) => Data ctx Float | Sat (ctx Char) => Data ctx Char | Sat (ctx Bool) => Data ctx Bool | Sat (ctx Handle) => Data ctx Handle | Sat (ctx DataType) => Data ctx DataType | (Data ctx (ForeignPtr Word8), Data ctx Int, Sat (ctx ByteString), Sat (ctx (ForeignPtr Word8)), Sat (ctx Int)) => Data ctx ByteString | (Sat (ctx (Maybe a)), Data ctx a) => Data ctx (Maybe a) | (Sat (ctx ([] a)), Data ctx a) => Data ctx ([] a) | (Sat (ctx (Ratio a)), Data ctx a, Integral a) => Data ctx (Ratio a) | (Sat (ctx (Set a)), Data ctx a, Ord a) => Data ctx (Set a) | (Sat (ctx (MVar a)), Typeable a) => Data ctx (MVar a) | (Sat (ctx (ForeignPtr a)), Typeable a) => Data ctx (ForeignPtr a) | (Sat (ctx (IORef a)), Typeable a) => Data ctx (IORef a) | (Sat (ctx (StablePtr a)), Typeable a) => Data ctx (StablePtr a) | (Sat (ctx (Ptr a)), Typeable a) => Data ctx (Ptr a) | (Sat (ctx (IO a)), Typeable a) => Data ctx (IO a) | (Sat (ctx ((,) a b)), Data ctx a, Data ctx b) => Data ctx ((,) a b) | (Sat (ctx (a -> b)), Data ctx a, Data ctx b) => Data ctx (a -> b) | (Sat (ctx (Either a b)), Data ctx a, Data ctx b) => Data ctx (Either a b) | (Sat (ctx (Map a b)), Data ctx a, Data ctx b, Ord a) => Data ctx (Map a b) | (Sat (ctx ([] b)), Sat (ctx (Array a b)), Typeable a, Data ctx b, Data ctx ([] b), Ix a) => Data ctx (Array a b) | (Sat (ctx (ST s a)), Typeable s, Typeable a) => Data ctx (ST s a) | (Sat (ctx ((,,) a b c)), Data ctx a, Data ctx b, Data ctx c) => Data ctx ((,,) a b c) | (Sat (ctx ((,,,) a b c d)), Data ctx a, Data ctx b, Data ctx c, Data ctx d) => Data ctx ((,,,) a b c d) | (Sat (ctx ((,,,,) a b c d e)), Data ctx a, Data ctx b, Data ctx c, Data ctx d, Data ctx e) => Data ctx ((,,,,) a b c d e) | (Sat (ctx ((,,,,,) a b c d e f)), Data ctx a, Data ctx b, Data ctx c, Data ctx d, Data ctx e, Data ctx f) => Data ctx ((,,,,,) a b c d e f) | (Sat (ctx ((,,,,,,) a b c d e f g)), Data ctx a, Data ctx b, Data ctx c, Data ctx d, Data ctx e, Data ctx f, Data ctx g) => Data ctx ((,,,,,,) a b c d e f g) |
|
|
|
type GenericT ctx = forall a. Data ctx a => a -> a | Source |
|
|
|
|
|
|
|
type GenericM m ctx = forall a. Data ctx a => a -> m a | Source |
|
|
|
|
type GenericQ ctx r = forall a. Data ctx a => a -> r | Source |
|
|
|
|
|
|
|
|
|
|
Build a term skeleton
|
|
|
Build a term and use a generic function for subterms
|
|
|
Monadic variation on "fromConstrB"
|
|
|
Representation of datatypes.
| A package of constructor representations with names of type and module.
| The list of constructors could be an array, a balanced tree, or others.
| Constructors | | Instances | |
|
|
|
Representation of constructors
| Constructors | | Instances | |
|
|
|
Public representation of datatypes
| Constructors | AlgRep [Constr] | | IntRep | | FloatRep | | StringRep | | NoRep | |
| Instances | |
|
|
|
Public representation of constructors
| Constructors | | Instances | |
|
|
|
Unique index for datatype constructors.
| Textual order is respected. Starts at 1.
|
|
|
Fixity of constructors
| Constructors | | Instances | |
|
|
|
Gets the type constructor including the module
|
|
|
Gets the public presentation of datatypes
|
|
|
Gets the datatype of a constructor
|
|
|
Gets the public presentation of constructors
|
|
|
Look up a constructor by its representation
|
|
|
Constructs an algebraic datatype
|
|
|
Constructs a constructor
|
|
|
Gets the constructors
|
|
|
Gets the field labels of a constructor
|
|
|
Gets the fixity of a constructor
|
|
|
Gets the string for a constructor
|
|
|
Lookup a constructor via a string
|
|
|
Test for an algebraic type
|
|
|
Gets the constructor for an index
|
|
|
Gets the index of a constructor
|
|
|
Gets the maximum constructor index
|
|
|
Constructs the Int type
|
|
|
Constructs the Float type
|
|
|
Constructs the String type
|
|
|
Helper for mkIntType, mkFloatType, mkStringType
|
|
|
|
|
|
|
|
|
|
|
Constructs a non-representation
|
|
|
Test for a non-representable type
|
|
Produced by Haddock version 2.4.2 |