diff --git a/README.md b/README.md index c1ee79a..177fb20 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/Elm/Module.hs b/src/Elm/Module.hs index 783677d..4b27116 100644 --- a/src/Elm/Module.hs +++ b/src/Elm/Module.hs @@ -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 (..)" , "" , "" diff --git a/test/Elm/ModuleSpec.hs b/test/Elm/ModuleSpec.hs index 6fbc58d..5cd7dee 100644 --- a/test/Elm/ModuleSpec.hs +++ b/test/Elm/ModuleSpec.hs @@ -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 (..)" , "" , ""