Skip to content

Commit c22552c

Browse files
committed
Fix error and remove spaces
1 parent 2b5edf2 commit c22552c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ Bootstrapping the connection is straightforward.
5555
First, use a `middleware` to setup the (Haskell) server.
5656
5757
```Haskell
58-
import qualified Network.JavaScript
58+
import Network.JavaScript
5959
6060
...
6161
scotty 3000 $ do
6262
middleware $ start app
63-
...
63+
...
6464
6565
app :: Engine -> IO ()
6666
app eng = send eng $ command "console.log('Hello!')"
@@ -71,7 +71,7 @@ Next, include the following fragment in your HTML code.
7171
```HTML
7272
<script>
7373
window.jsb = {ws: new WebSocket('ws://' + location.host)};
74-
jsb.ws.onmessage = (evt) => eval(evt.data);
74+
jsb.ws.onmessage = (evt) => eval(evt.data);
7575
</script>
7676
```
7777

0 commit comments

Comments
 (0)