Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
Bare values
type family Wear t (f :: Type -> Type) a where ... #
The Wear
type-function allows one to define a Barbie-type as
data B t f = B { f1 ::Wear
t fInt
, f2 ::Wear
t fBool
}
This gives rise to two rather different types:
B
is a normal Barbie-type, in the sense thatCovered
ff1 :: B
, etc.Covered
f -> fInt
B
, on the other hand, is a normal record with no functor around the type:Bare
f
B { f1 :: 5, f2 =True
} :: BBare
f