hls-tactics-plugin-0.5.1.0: Tactics plugin for Haskell Language Server
Safe HaskellNone
LanguageHaskell2010

Ide.Plugin.Tactic.Context

Synopsis

Documentation

contextMethodHypothesis :: Context -> Map OccName (HyInfo CType) Source #

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

excludeForbiddenMethods :: [(OccName, a)] -> [(OccName, 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.