mirror of
https://github.com/ilyakooo0/elm-bridge.git
synced 2024-09-11 14:05:55 +03:00
Add pointers to the Elm package
This commit is contained in:
parent
d6659740dd
commit
0894666e34
@ -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
|
||||
|
@ -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 (..)"
|
||||
, ""
|
||||
, ""
|
||||
|
@ -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 (..)"
|
||||
, ""
|
||||
, ""
|
||||
|
Loading…
Reference in New Issue
Block a user