threepenny-gui- Small GUI framework that uses the web browser as a display.

Safe HaskellNone




Predefined DOM elements, for convenience.


Combinations and utilities

addStyleSheet :: Window -> FilePath -> IO ()Source

Add a stylesheet to the head.

The second argument refers to the filename of the stylesheet, but not its complete filepath. Threepenny will prefix the css subdirectory of the tpStatic configuration field to construct the complete filepath.

new :: IO ElementSource

Make a new div element, synonym for div.

Primitive HTML elements