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

Ide.Plugin.Tactic.Context

Synopsis

Documentation

contextMethodHypothesis :: Context -> Hypothesis CType Source #

Find all of the class methods that exist from the givens in the context.

excludeForbiddenMethods :: [HyInfo a] -> [HyInfo a] Source #

Many operations are defined in typeclasses for performance reasons, rather than being a true part of the class. This function filters out those, in order to keep our hypothesis space small.

definedThetaType :: Context -> OccName -> Maybe CType Source #

Given the name of a function that exists in ctxDefiningFuncs, get its theta type.