Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Constrained.TypeErrors
Documentation
type family Computes (ty ∷ k0) (err ∷ Constraint) (a ∷ k) ∷ k where ... Source #
Equations
Computes Dummy _ _ = TypeError ((Text "This shouldn't be reachable because " :<>: ShowType Dummy) :<>: Text " shouldn't be exported!") | |
Computes (Dummy : as) _ _ = TypeError ((Text "This shouldn't be reachable because " :<>: ShowType Dummy) :<>: Text " shouldn't be exported!") | |
Computes _ _ a = a |
type AssertComputes ty em = Computes ty (TypeError em) (() ∷ Constraint) Source #
type AssertSpineComputes help (xs ∷ [k]) = AssertSpineComputesF help xs (TypeError ((Text "Type list computation is stuck on " :$$: (Text " " :<>: ShowType xs)) :$$: help)) Source #
module GHC.TypeError