We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b5edf2 commit c22552cCopy full SHA for c22552c
README.md
@@ -55,12 +55,12 @@ Bootstrapping the connection is straightforward.
55
First, use a `middleware` to setup the (Haskell) server.
56
57
```Haskell
58
-import qualified Network.JavaScript
+import Network.JavaScript
59
60
...
61
scotty 3000 $ do
62
middleware $ start app
63
- ...
+ ...
64
65
app :: Engine -> IO ()
66
app eng = send eng $ command "console.log('Hello!')"
@@ -71,7 +71,7 @@ Next, include the following fragment in your HTML code.
71
```HTML
72
<script>
73
window.jsb = {ws: new WebSocket('ws://' + location.host)};
74
- jsb.ws.onmessage = (evt) => eval(evt.data);
+ jsb.ws.onmessage = (evt) => eval(evt.data);
75
</script>
76
```
77
0 commit comments