rewrite-inspector-0.1.0.4: Inspection of rewriting steps

Copyright(C) 2019 QBayLogic
LicenseBSD2 (see the file LICENSE)
MaintainerOrestis Melkonian <melkon.or@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Pretty

Description

Pretty-printing utilities and styling for the UI.

Documentation

showCode Source #

Arguments

:: Diff term 
=> Bool

whether to scroll to focused region

-> Int

maximum line width

-> Options term

options for Clash's pretty-printer

-> String

the string to search for

-> [Ctx term]

the current context

-> term

code to display

-> Widget n

the Brick widget to display

data Item Source #

Constructors

Stx 
Ctx 

myForm :: forall term. Diff term => [Ctx term] -> [Ctx term] -> [Item] -> [String] -> SimpleDocStream (Ann term) -> [MyDoc] Source #

split :: [MyDoc] -> [(Int, [MyDoc])] Source #

render :: Bool -> String -> (Int, [MyDoc]) -> Widget n Source #

defaultTheme :: [(String, Attr)] -> Theme Source #

modify :: Bool -> [String] -> Widget n -> Widget n Source #

emph :: String -> Widget n Source #

title :: String -> Widget n Source #

withBorder :: String -> Widget n -> Widget n Source #

withBorderSelected :: String -> Widget n -> Widget n Source #

withBorderStyle :: BorderStyle -> String -> Widget n -> Widget n Source #

vBoxSpaced :: [Widget n] -> Widget n Source #

hBoxSpaced :: Int -> [Widget n] -> Widget n Source #