Module

Data.Reflection

Package
purescript-reflection
Repository
paf31/purescript-reflection

#Reifies Source

class Reifies s a | s -> a where

This class reifies a value of type a at the type level.

reflect can be used to recover the value inside a function passed to reify.

Members

#reify Source

reify :: forall r a. a -> (forall s. Reifies s a => Proxy s -> r) -> r

Reify a value of type a at the type level.

The value can be recovered in the body of the lambda by using the reflect function.