Maintainer | Toshio Ito <debug.ito@gmail.com> |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
WildBind.FrontEnd
Description
Data types and type classes about front-ends.
You have to look at this module if you want to create a front-end implementation.
Synopsis
- data FrontEvent s i
- data FrontEnd s i = FrontEnd {
- frontDefaultDescription :: i -> ActionDescription
- frontSetGrab :: i -> IO ()
- frontUnsetGrab :: i -> IO ()
- frontNextEvent :: IO (FrontEvent s i)
Documentation
data FrontEvent s i Source #
Event from the front-end. s
is the state of the front-end. i
is the input.
Constructors
FEInput i | An event that a new input is made. |
FEChange s | An event that the front-end state is changed. |
Instances
(Show i, Show s) => Show (FrontEvent s i) Source # | |
Defined in WildBind.FrontEnd Methods showsPrec :: Int -> FrontEvent s i -> ShowS # show :: FrontEvent s i -> String # showList :: [FrontEvent s i] -> ShowS # | |
(Eq i, Eq s) => Eq (FrontEvent s i) Source # | |
Defined in WildBind.FrontEnd Methods (==) :: FrontEvent s i -> FrontEvent s i -> Bool # (/=) :: FrontEvent s i -> FrontEvent s i -> Bool # | |
(Ord i, Ord s) => Ord (FrontEvent s i) Source # | |
Defined in WildBind.FrontEnd Methods compare :: FrontEvent s i -> FrontEvent s i -> Ordering # (<) :: FrontEvent s i -> FrontEvent s i -> Bool # (<=) :: FrontEvent s i -> FrontEvent s i -> Bool # (>) :: FrontEvent s i -> FrontEvent s i -> Bool # (>=) :: FrontEvent s i -> FrontEvent s i -> Bool # max :: FrontEvent s i -> FrontEvent s i -> FrontEvent s i # min :: FrontEvent s i -> FrontEvent s i -> FrontEvent s i # |
Interface to the front-end. s
is the state of the front-end,
i
is the input.
Constructors
FrontEnd | |
Fields
|