2023-07-05 18:15:01 +00:00
|
|
|
module Test.Person where
|
|
|
|
|
2023-07-06 14:40:22 +00:00
|
|
|
import Data.Typeable (class Tagged, TypeRep, makeTag, typeRep)
|
|
|
|
import Data.Unit (unit)
|
2023-07-05 18:15:01 +00:00
|
|
|
|
|
|
|
newtype Person = Person { name :: String, location :: String }
|
|
|
|
|
2023-07-06 14:40:22 +00:00
|
|
|
instance taggedPerson :: Tagged Person where
|
|
|
|
tag = makeTag unit
|
2023-07-05 18:15:01 +00:00
|
|
|
|
|
|
|
typePerson :: TypeRep Person
|
|
|
|
typePerson = typeRep
|
|
|
|
|
|
|
|
typeArrPerson :: TypeRep (Array Person)
|
|
|
|
typeArrPerson = typeRep
|
|
|
|
|