| Safe Haskell | Safe-Inferred | 
|---|---|
| Language | Haskell2010 | 
Potato.Flow.Vty.PotatoReader
Contents
Synopsis
- kTinyToolsFileExtension :: IsString a => a
- addTinyToolsFileExtensionIfNecessary :: FilePath -> FilePath
- data PotatoStyle = PotatoStyle {- _potatoStyle_canvasCursor :: Attr
- _potatoStyle_makeCanvasManipulator :: RenderHandleColor -> Attr
- _potatoStyle_normal :: Attr
- _potatoStyle_selected :: Attr
- _potatoStyle_layers_softSelected :: Attr
- _potatoStyle_canvas_oob :: Attr
- _potatoStyle_textfield_normal :: Attr
- _potatoStyle_textfield_modifying :: Attr
- _potatoStyle_textfield_cursor :: Attr
 
- data PotatoConfig t = PotatoConfig {}
- class (Reflex t, Monad m) => HasPotato t m | m -> t where- askPotato :: m (PotatoConfig t)
 
- newtype PotatoReader t m a = PotatoReader {- unPotatoReader :: ReaderT (PotatoConfig t) m a
 
- runPotatoReader :: (Reflex t, Monad m) => PotatoReader t m a -> PotatoConfig t -> m a
Documentation
kTinyToolsFileExtension :: IsString a => a Source #
data PotatoStyle Source #
Constructors
Instances
| Default PotatoStyle Source # | |
| Defined in Potato.Flow.Vty.PotatoReader Methods def :: PotatoStyle # | |
data PotatoConfig t Source #
Constructors
| PotatoConfig | |
Instances
| Reflex t => Default (PotatoConfig t) Source # | |
| Defined in Potato.Flow.Vty.PotatoReader Methods def :: PotatoConfig t # | |
class (Reflex t, Monad m) => HasPotato t m | m -> t where Source #
A class for things that can dynamically gain and lose focus
Methods
askPotato :: m (PotatoConfig t) Source #
Instances
newtype PotatoReader t m a Source #
A widget that has access to information about whether it is focused
Constructors
| PotatoReader | |
| Fields 
 | |
Instances
runPotatoReader :: (Reflex t, Monad m) => PotatoReader t m a -> PotatoConfig t -> m a Source #
Run a FocusReader action with the given focus value
 TODO flip arg order to match ReaderT oops...