ghc-8.10.4: The GHC API
Safe HaskellNone
LanguageHaskell2010

TcFlatten

Synopsis

Documentation

data FlattenMode Source #

Instances

Instances details
Outputable FlattenMode # 
Instance details

Defined in TcFlatten

flatten :: FlattenMode -> CtEvidence -> TcType -> TcS (Xi, TcCoercion) Source #

See Note [Flattening]. If (xi, co) <- flatten mode ev ty, then co :: xi ~r ty where r is the role in ev. If mode is FM_FlattenAll, then xi is almost function-free (Note [Almost function-free] in TcRnTypes).