hermit-0.7.0.0: Haskell Equational Reasoning Model-to-Implementation Tunnel

Safe HaskellNone
LanguageHaskell2010

HERMIT.Plugin.Types

Documentation

data PluginState Source

Constructors

PluginState 

Fields

ps_cursor :: AST

the current AST

ps_focus :: AbsolutePath Crumb

current focused path

ps_pretty :: PrettyPrinter

which pretty printer to use

ps_render :: Handle -> PrettyOptions -> Either String DocH -> IO ()

the way of outputing to the screen

ps_tick :: TVar (Map String Int)

the list of ticked messages

ps_corelint :: Bool

if true, run Core Lint on module after each rewrite

ps_diffonly :: Bool

if true, show diffs rather than pp full code (TODO: move into pretty opts)

ps_failhard :: Bool

if true, abort on *any* failure this should be in a reader

ps_kernel :: Kernel
 
ps_pass :: PassInfo
 

newtype PSBox Source

Constructors

PSBox PluginState 

Instances