ghc-7.10.1: The GHC API

Safe HaskellNone
LanguageHaskell2010

TcSMonad

Synopsis

Documentation

data WorkList Source

Constructors

WL 

Fields

wl_eqs :: [Ct]
 
wl_funeqs :: [Ct]
 
wl_rest :: [Ct]
 
wl_implics :: Bag Implication
 

Instances

runTcS :: TcS a -> TcM (a, Bag EvBind) Source

tryTcS :: TcS a -> TcS a Source

nestTcS :: TcS a -> TcS a Source

recoverTcS :: TcS a -> TcS a -> TcS a Source

data XEvTerm Source

Constructors

XEvTerm 

Fields

ev_preds :: [PredType]
 
ev_comp :: [EvTerm] -> EvTerm
 
ev_decomp :: EvTerm -> [EvTerm]
 

data Freshness Source

Constructors

Fresh 
Cached 

data InertCans Source

Constructors

IC 

updInertDicts :: (DictMap Ct -> DictMap Ct) -> TcS () Source

splitInertCans :: InertCans -> ([Ct], [Ct], [Ct]) Source

Extract the (given, derived, wanted) inert constraints

removeInertCts :: [Ct] -> InertCans -> InertCans Source

Remove inert constraints from the InertCans, for use when a typechecker plugin wishes to discard a given.

insertFunEq :: FunEqMap a -> TyCon -> [Type] -> a -> FunEqMap a Source

findDictsByClass :: DictMap a -> Class -> Bag a Source

addDict :: DictMap a -> Class -> [Type] -> a -> DictMap a Source

addDictsByClass :: DictMap Ct -> Class -> Bag Ct -> DictMap Ct Source

delDict :: DictMap a -> Class -> [Type] -> DictMap a Source

partitionDicts :: (Ct -> Bool) -> DictMap Ct -> (Bag Ct, DictMap Ct) Source

updInertFunEqs :: (FunEqMap Ct -> FunEqMap Ct) -> TcS () Source

findFunEq :: FunEqMap a -> TyCon -> [Type] -> Maybe a Source

sizeFunEqMap :: FunEqMap a -> Int Source

findFunEqsByTyCon :: FunEqMap a -> TyCon -> [a] Source

findFunEqs :: FunEqMap a -> TyCon -> [Type] -> Maybe a Source

partitionFunEqs :: (Ct -> Bool) -> FunEqMap Ct -> ([Ct], FunEqMap Ct) Source

newTcRef :: a -> TcS (TcRef a) Source

updTcRef :: TcRef a -> (a -> a) -> TcS () Source