hscurses-1.4.2.0: NCurses bindings for Haskell

Safe HaskellNone
LanguageHaskell98

UI.HSCurses.Widgets

Synopsis

Documentation

type Pos = (Int, Int) Source

type Offset = (Int, Int) Source

type Size = (Int, Int) Source

data Cont a Source

Constructors

Cont a 
Done a 

class Widget a => ActiveWidget a where Source

Methods

activate :: (MonadIO m, MonadMask m) => m () -> Pos -> Size -> a -> m (a, String) Source

type KeyHandler a = Pos -> Size -> a -> IO (Cont a) Source

mkKeyHandler :: (Pos -> Size -> a -> a) -> KeyHandler a Source

data EmptyWidget Source

Constructors

EmptyWidget Size 

Instances

data TableCell Source

Constructors

forall w . Widget w => TableCell w 
forall w . ActiveWidget w => ActiveTableCell w 

Instances

data FillRow Source

Constructors

First 
Last 
None 

Instances

joinLists :: [[a]] -> [a] -> [a] Source

Join a list by some delimiter

splitList :: Eq a => [a] -> [a] -> [[a]] Source

Split a list by some delimiter

listReplace :: [a] -> a -> Int -> [a] Source

alignRows :: [[[a]]] -> a -> [a] -> [[a]] Source

align :: HAlignment -> Int -> a -> [a] -> [a] Source

deleteAt :: Int -> [a] -> [a] Source