rewrite-inspector-0.1.0.6: 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

countOcc Source #

Arguments

:: Diff term 
=> Options term

options for Clash's pretty-printer

-> String

the string to search for

-> term

code to search in

-> Int

total number of occurrences

showCode Source #

Arguments

:: Diff term 
=> Name

viewport name

-> Bool

whether to scroll to focused region

-> Int

maximum line width

-> Options term

options for Clash's pretty-printer

-> [Ctx term]

the current context

-> String

the string to search for

-> term

code to display

-> Widget Name

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 :: Name -> Bool -> String -> Int -> (Int, [MyDoc]) -> Widget Name Source #

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

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

highlightSearch Source #

Arguments

:: Name

viewport name

-> Int

occurrences so far

-> String

the whole string (haystack)

-> String

the string to search for (needle)

-> (Widget Name, Int) 

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 #