ghcjs-hplay-0.3: monadic, reactive Formlets 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 -> TransIO 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 -> TransIO 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 :: TransIO () 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 (TransIO a) Source # 

Methods

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

recip :: TransIO a -> TransIO a #

fromRational :: Rational -> TransIO a #

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

Methods

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

(-) :: TransIO a -> TransIO a -> TransIO a #

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

negate :: TransIO a -> TransIO a #

abs :: TransIO a -> TransIO a #

signum :: TransIO a -> TransIO a #

fromInteger :: Integer -> TransIO a #