Safe Haskell | None |
---|---|
Language | Haskell2010 |
Basic types used by this library.
- data Location = Location {}
- locL :: Iso' Location (Int, Int)
- class TerminalLocation a where
- data CursorLocation = CursorLocation {
- cursorLocation :: !Location
- cursorLocationName :: !(Maybe Name)
- cursorLocationL :: Lens' CursorLocation Location
- cursorLocationNameL :: Lens' CursorLocation (Maybe Name)
- class HandleEvent a where
- handleEvent :: Event -> a -> a
- newtype Name = Name String
- suffixLenses :: Name -> DecsQ
Documentation
A terminal screen location.
class TerminalLocation a where Source
The class of types that behave like terminal locations.
Get the column out of the value
Get the row out of the value
data CursorLocation Source
A cursor location. These are returned by the rendering process.
CursorLocation | |
|
class HandleEvent a where Source
The class of types that provide some basic event-handling.
handleEvent :: Event -> a -> a Source
Handle a Vty event
HandleEvent Editor | |
HandleEvent (Dialog a) | |
HandleEvent (List e) |
Names of things. Used to name cursor locations, widgets, and viewports.
suffixLenses :: Name -> DecsQ Source
A template haskell function to build lenses for a record type. This
function differs from the makeLenses
function in that
it does not require the record fields to be prefixed with underscores
and it adds an L suffix to lens names to make it clear that they
are lenses.