Skip to content

Commit

Permalink
Update README to reflect port type alias fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsnew committed Jul 18, 2014
1 parent 97fd722 commit 6e16c0c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@ hello = putStrLn "Hello, Console!" >>
putStrLn "That's all, folks!" >>
exit 0
```
with some boilerplate
with some boilerplate (which can be automatically added, see below)
```haskell
-- | Can't use a type alias in ports, yet :/
port requests : Signal Json.Value
port requests : Signal Request
port requests = Run.run responses hello

port responses : Signal (Maybe String)
port responses : Signal Response
```
link in some javascript and then run:
```
Expand Down Expand Up @@ -87,10 +86,10 @@ import Json
```
and the following code will be appended to the end of the file:
```haskell
port requests : Signal Json.Value
port requests : Signal Request
port requests = Run.run responses console

port responses : Signal (Maybe String)
port responses : Signal Response
```
The file will then be compiled to `test.js`, which is runnable with node.
Keep in mind that the `jsdom` dependency must still
Expand Down

0 comments on commit 6e16c0c

Please sign in to comment.