From 6e16c0ccda6c14375036baa147a95173c2636c21 Mon Sep 17 00:00:00 2001 From: Max New Date: Thu, 17 Jul 2014 22:52:55 -0500 Subject: [PATCH] Update README to reflect port type alias fix --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7095d51..e9fddf1 100644 --- a/README.md +++ b/README.md @@ -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: ``` @@ -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