WASM hello world
This commit is contained in:
parent
38838c47b9
commit
77ee0c0abb
9 changed files with 121 additions and 46 deletions
19
app/App.hs
Normal file
19
app/App.hs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
module App where
|
||||
|
||||
import Reflex
|
||||
import Reflex.Dom.Core
|
||||
|
||||
import Language.Javascript.JSaddle
|
||||
|
||||
testWidget ::
|
||||
( DomBuilder t m
|
||||
, DomBuilderSpace m ~ GhcjsDomSpace
|
||||
, MonadHold t m
|
||||
, PostBuild t m
|
||||
) =>
|
||||
m ()
|
||||
testWidget = elAttr "div" ("class" =: "content") do
|
||||
text "hello, world!"
|
||||
|
||||
start :: JSM ()
|
||||
start = mainWidget testWidget
|
||||
Loading…
Add table
Add a link
Reference in a new issue