Copyright | (C) 2023 Ryan Scott |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Ryan Scott |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | GHC2021 |
Defines a replacement for the promoted Error
function whose argument is
kind-polymorphic.
Synopsis
- type family PolyError (arg :: a) :: b where ...
Documentation
type family PolyError (arg :: a) :: b where ... Source #
Like Error
from GHC.TypeLits.Singletons, but with an argument that is
generalized to be kind-polymorphic. This allows passing additional
information to the error besides raw Symbol
s.