uni-util-2.3.0.1: Utilities for the uniform workbench

Safe HaskellNone

Util.VariableList

Synopsis

Documentation

singletonList :: forall a. a -> VariableList aSource

data VariableList a Source

Return the close action. attachListOp :: ParallelExec -> VariableList a -> ListDrawer a -> IO (IO ())

data ListDrawer a pos Source

Constructors

ListDrawer 

Fields

newPos :: Maybe pos -> Maybe a -> IO pos
 
setPos :: pos -> Maybe a -> IO ()
 
delPos :: pos -> IO ()
 
redraw :: IO ()
 

Instances

attachListOp :: VariableList a -> forall pos. ParallelExec -> ListDrawer a pos -> IO (IO ())Source

coMapListDrawer :: (a -> b) -> ListDrawer b pos -> ListDrawer a posSource

map2ListDrawer :: (pos1 -> pos2) -> (pos2 -> pos1) -> ListDrawer b pos1 -> ListDrawer b pos2Source