Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Wrappers for "free" generics, where the base case is handled for you.
Documentation
Free generic wrapper where any field emits a type error.
Useful for generic functions on void or enum types.
Instances
type ENoRec0 = 'Text "Cannot use generic function on NoRec0-wrapped type containing fields" Source #
data EmptyRec0 (a :: k) Source #
Free generic wrapper where every field does "nothing" (e.g. mempty
.)
Maybe useful for testing?