WASM hello world

This commit is contained in:
Sidharth Kulkarni 2026-05-10 09:24:48 -07:00
parent 38838c47b9
commit 77ee0c0abb
Signed by: skulk
SSH key fingerprint: SHA256:Jby+S9d1WmwqnXIrngHgccYNHz+cYquxN1zm3ym3Kbg
9 changed files with 121 additions and 46 deletions

View file

@ -6,10 +6,11 @@ description: "a game where you number square"
license: BSD3
author: skulk
language: GHC2021
ghc-options: "-Wall"
dependencies:
- "base == 4.*"
- base
- random
- array
- text
@ -30,6 +31,8 @@ default-extensions:
- OverloadedLabels
- NamedFieldPuns
- TypeOperators
- BlockArguments
- OverloadedStrings
build-type: Simple
@ -41,6 +44,14 @@ executable:
source-dirs:
- app
main: Main.hs
dependencies:
- base
- reflex
- reflex-dom-core
- "ghcjs-dom == 0.9.*"
- jsaddle
- jsaddle-wasm
- ghc-experimental
when:
- condition: arch(wasm32)
ghc-options: