hls-tactics-plugin-1.1.0.0: Wingman plugin for Haskell Language Server
Safe HaskellNone
LanguageHaskell2010

Wingman.Judgements.Theta

Synopsis

Documentation

data Evidence Source #

Something we've learned about the type environment.

Instances

Instances details
Show Evidence Source # 
Instance details

Defined in Wingman.Judgements.Theta

getEvidenceAtHole :: Tracked age SrcSpan -> Tracked age (LHsBinds GhcTc) -> [Evidence] Source #

Compute all the Evidence implicitly bound at the given SrcSpan.

mkEvidence :: PredType -> [Evidence] Source #

Given a PredType, pull an Evidence out of it.

evidenceToSubst :: Evidence -> TacticState -> TacticState Source #

Update our knowledge of which types are equal.

evidenceToHypothesis :: Evidence -> Hypothesis CType Source #

Get all of the methods that are in scope from this piece of Evidence.

evidenceToThetaType :: [Evidence] -> Set CType Source #

Build a set of PredTypes from the evidence.