hscurses-1.4.1.2: NCurses bindings for Haskell

Safe HaskellNone

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 whereSource

Methods

activate :: MonadExcIO 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 aSource

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