miso- A tasty Haskell front-end framework

Copyright(C) 2016-2018 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <djohnson.m@gmail.com>
Safe HaskellNone






miso :: Eq model => (URI -> App model action) -> IO () Source

Runs an isomorphic miso application Assumes the pre-rendered DOM is already present

startApp :: Eq model => App model action -> IO () Source

Runs a miso application

module Miso.Event

module Miso.Html

module Miso.Types

module Miso.Util

windowAddEventListener :: JSString -> Callback (JSVal -> IO ()) -> IO () Source

Adds event listener to window

windowRemoveEventListener :: JSString -> Callback (JSVal -> IO ()) -> IO () Source

Removes event listener from window

windowInnerHeight :: IO Int Source

Retrieves inner height

windowInnerWidth :: IO Int Source

Retrieves outer height

now :: IO Double Source

Retrieve high performance time stamp

consoleLog :: JSVal -> IO () Source


stringify :: ToJSON json => json -> IO JSString Source

Converts a JS object into a JSON string

parse :: FromJSON json => JSVal -> IO json Source

Parses a JSString

item :: JSVal -> JSString -> IO JSVal Source

Indexing into a JS object

jsvalToValue :: JSVal -> IO (Maybe Value) Source

Convert JSVal to Maybe Value

clearBody :: IO () Source

Clear the document body. This is particularly useful to avoid creating multiple copies of your app when running in GHCJSi.