Add pointers to the Elm package

This commit is contained in:
bartavelle 2016-01-13 11:07:40 +01:00
parent d6659740dd
commit 0894666e34
3 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,8 @@ Hackage: [elm-bridge](http://hackage.haskell.org/package/elm-bridge)
Building the bridge from [Haskell](http://haskell.org) to [Elm](http://elm-lang.org) and back. Define types once, use on both sides and enjoy easy (de)serialisation. Cheers!
Note that the [bartavelle/json-helpers](http://package.elm-lang.org/packages/bartavelle/json-helpers/latest/) package, with version >= 1.1.0, is expected by the generated Elm modules.
## Usage
```haskell

View File

@ -29,6 +29,7 @@ makeElmModule moduleName defs = unlines (
, "import Json.Decode"
, "import Json.Decode exposing ((:=))"
, "import Json.Encode"
, "-- The following module comes from bartavelle/json-helpers"
, "import Json.Helpers exposing (..)"
, ""
, ""

View File

@ -30,6 +30,7 @@ moduleCode = unlines
, "import Json.Decode"
, "import Json.Decode exposing ((:=))"
, "import Json.Encode"
, "-- The following module comes from bartavelle/json-helpers"
, "import Json.Helpers exposing (..)"
, ""
, ""
@ -66,6 +67,7 @@ moduleCode' = unlines
, "import Json.Decode"
, "import Json.Decode exposing ((:=))"
, "import Json.Encode"
, "-- The following module comes from bartavelle/json-helpers"
, "import Json.Helpers exposing (..)"
, ""
, ""