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

Wingman.LanguageServer.TacticProviders

Synopsis

Documentation

commandProvider :: TacticCommand -> TacticProvider Source #

Mapping from tactic commands to their contextual providers. See provide, filterGoalType and filterBindingType for the nitty gritty.

commandTactic :: TacticCommand -> Text -> TacticsM () Source #

A mapping from tactic commands to actual tactics for refinery.

data TacticParams Source #

Constructors

TacticParams 

Fields

Instances

Instances details
Eq TacticParams Source # 
Instance details

Defined in Wingman.LanguageServer.TacticProviders

Show TacticParams Source # 
Instance details

Defined in Wingman.LanguageServer.TacticProviders

Generic TacticParams Source # 
Instance details

Defined in Wingman.LanguageServer.TacticProviders

Associated Types

type Rep TacticParams :: Type -> Type #

ToJSON TacticParams Source # 
Instance details

Defined in Wingman.LanguageServer.TacticProviders

FromJSON TacticParams Source # 
Instance details

Defined in Wingman.LanguageServer.TacticProviders

type Rep TacticParams Source # 
Instance details

Defined in Wingman.LanguageServer.TacticProviders

type Rep TacticParams = D1 ('MetaData "TacticParams" "Wingman.LanguageServer.TacticProviders" "hls-tactics-plugin-1.3.0.0-E5QWF1lCxNYDpSB9okEqox" 'False) (C1 ('MetaCons "TacticParams" 'PrefixI 'True) (S1 ('MetaSel ('Just "tp_file") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Uri) :*: (S1 ('MetaSel ('Just "tp_range") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Tracked 'Current Range)) :*: S1 ('MetaSel ('Just "tp_var_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))

useNameFromHypothesis :: (HyInfo CType -> TacticsM a) -> OccName -> TacticsM a Source #

Lift a function over HyInfos to one that takes an OccName and tries to look it up in the hypothesis.