Module
Data.Typeable
- Package
- purescript-ajnsit-typeable
- Repository
- yaitskov/purescript-typeable
#TypeableRecordFields Source
class TypeableRecordFields :: forall k. k -> Constraint
class TypeableRecordFields rowlist where
A class for records where all fields have Typeable
instances, used to
implement the Typeable
instance for records.
Members
typeableRecordFields :: Proxy rowlist -> TypeRow rowlist
Instances
TypeableRecordFields Nil
(IsSymbol key, TypeableRecordFields rowlistTail, Typeable focus) => TypeableRecordFields (Cons key focus rowlistTail)
#typeRepFromVal Source
typeRepFromVal :: forall a. Typeable a => a -> TypeRep a
Get the TypeRep
for a value
#SomeTypeRep Source
data SomeTypeRep
Unindexed typereps
Note: Can't use the exists
package because it doesn't gel with the polykinded TypeRep
#wrapSomeTypeRep Source
wrapSomeTypeRep :: forall a. TypeRep a -> SomeTypeRep
Wrap a TypeRep into a SomeTypeRep
#unwrapSomeTypeRep Source
unwrapSomeTypeRep :: forall r. SomeTypeRep -> (forall a. TypeRep a -> r) -> r
Extract a TypeRep from a SomeTypeRep
#runSomeTypeRep Source
runSomeTypeRep :: forall r. (forall a. TypeRep a -> r) -> SomeTypeRep -> r
Run a function on a TypeRep from a SomeTypeRep
#eqSomeTypeRep Source
eqSomeTypeRep :: SomeTypeRep -> SomeTypeRep -> Boolean
Compare unindexed typereps
#typeRepFromTag Source
typeRepFromTag :: forall a. Tag a -> TypeRep a
Every Tag can be converted to the corresponding TypeRep
#Tagged Source
class Tagged :: forall k. k -> Constraint
class Tagged a where
This class should only be used to specify instances for your own datatypes to automatically get Typeable instances It's never necessary to use Tagged as a constraint in order to use Typeable
Members
Instances
- Modules
- Data.
Data - Data.
Dynamic - Data.
Typeable