ghcjs-hplay-0.3.4.2: Client-side web EDSL for transient nodes running in the web browser

Safe HaskellNone
LanguageHaskell2010

GHCJS.HPlay.Cell

Contents

Description

 

Synopsis

Documentation

data Cell a Source #

Constructors

Cell 

Fields

Instances

Attributable (Cell a) Source # 

Methods

(!) :: Cell a -> Attribute -> Cell a #

boxCell :: (Show a, Read a, Typeable a) => ElemID -> Cell a Source #

creates a input box cell with polimorphic value, identified by a string. the cell can be updated programatically

(.=) :: MonadIO m => Cell a -> a -> m () infixr 0 Source #

Cell assignment

get :: Cell x -> TransIO x Source #

mkscell :: JSString -> Maybe Double -> Expr Double -> Widget Double Source #

make a spreadsheet cell. a spreadsheet cell is an input-output box that takes input values from the user, has an expression associated and display the result value after executing calc

see http://tryplayg.herokuapp.com/try/spreadsheet.hs/edit

scell :: JSString -> Expr Double -> Cell Double Source #

gcell :: JSString -> Widget Double Source #

within a mkscell formula, gcell get the the value of another cell using his name.

see http://tryplayg.herokuapp.com/try/spreadsheet.hs/edit

calc :: Widget () Source #

executes the spreadsheet adjusting the vaules of the cells created with mkscell and solving loops

see http://tryplayg.herokuapp.com/try/spreadsheet.hs/edit

Orphan instances

(Num a, Eq a, Fractional a) => Fractional (Widget a) Source # 

Methods

(/) :: Widget a -> Widget a -> Widget a #

recip :: Widget a -> Widget a #

fromRational :: Rational -> Widget a #

(Num a, Eq a) => Num (Widget a) Source # 

Methods

(+) :: Widget a -> Widget a -> Widget a #

(-) :: Widget a -> Widget a -> Widget a #

(*) :: Widget a -> Widget a -> Widget a #

negate :: Widget a -> Widget a #

abs :: Widget a -> Widget a #

signum :: Widget a -> Widget a #

fromInteger :: Integer -> Widget a #