mirror of
https://github.com/ilyakooo0/elm-bridge.git
synced 2024-09-11 14:05:55 +03:00
v0.6.0
This commit is contained in:
parent
d9d419e5f9
commit
35eb9804ac
@ -1,3 +1,7 @@
|
|||||||
|
# v0.6.0
|
||||||
|
|
||||||
|
* Support for Elm 0.19
|
||||||
|
|
||||||
# v0.5.2
|
# v0.5.2
|
||||||
|
|
||||||
* Fix a bug about tuples.
|
* Fix a bug about tuples.
|
||||||
|
@ -11,7 +11,7 @@ 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!
|
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!
|
||||||
|
|
||||||
This version of the package only supports Elm 0.18. Version 0.3.0.2 supports Elm 0.16 and Elm 0.17.
|
This version of the package only supports Elm 0.19. Version 0.5.2 supports Elm 0.18, and Version 0.3.0.2 supports Elm 0.16 and Elm 0.17.
|
||||||
|
|
||||||
Note that the [bartavelle/json-helpers](http://package.elm-lang.org/packages/bartavelle/json-helpers/latest/) package, with version >= 1.2.0, is expected by the generated Elm modules.
|
Note that the [bartavelle/json-helpers](http://package.elm-lang.org/packages/bartavelle/json-helpers/latest/) package, with version >= 1.2.0, is expected by the generated Elm modules.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: elm-bridge
|
name: elm-bridge
|
||||||
version: 0.5.2
|
version: 0.6.0
|
||||||
synopsis: Derive Elm types and Json code from Haskell types, using aeson's options
|
synopsis: Derive Elm types and Json code from Haskell types, using aeson's options
|
||||||
description: Building the bridge from Haskell to Elm and back. Define types once,
|
description: Building the bridge from Haskell to Elm and back. Define types once,
|
||||||
and derive the aeson and elm functions at the same time, using any aeson
|
and derive the aeson and elm functions at the same time, using any aeson
|
||||||
|
@ -105,7 +105,7 @@ moduleCode' elmVersion = unlines
|
|||||||
spec :: Spec
|
spec :: Spec
|
||||||
spec = do
|
spec = do
|
||||||
makeElmModuleSpec
|
makeElmModuleSpec
|
||||||
version0p18Spec
|
version0p19Spec
|
||||||
|
|
||||||
makeElmModuleSpec :: Spec
|
makeElmModuleSpec :: Spec
|
||||||
makeElmModuleSpec =
|
makeElmModuleSpec =
|
||||||
@ -116,8 +116,8 @@ makeElmModuleSpec =
|
|||||||
modu `shouldBe` moduleCode Elm0p19
|
modu `shouldBe` moduleCode Elm0p19
|
||||||
modu' `shouldBe` moduleCode' Elm0p19
|
modu' `shouldBe` moduleCode' Elm0p19
|
||||||
|
|
||||||
version0p18Spec :: Spec
|
version0p19Spec :: Spec
|
||||||
version0p18Spec =
|
version0p19Spec =
|
||||||
describe "makeElmModuleWithVersion Elm0p19" $
|
describe "makeElmModuleWithVersion Elm0p19" $
|
||||||
it "should produce the correct code" $
|
it "should produce the correct code" $
|
||||||
do let modu = makeElmModuleWithVersion Elm0p19 "Foo" [DefineElm (Proxy :: Proxy (Bar a))]
|
do let modu = makeElmModuleWithVersion Elm0p19 "Foo" [DefineElm (Proxy :: Proxy (Bar a))]
|
||||||
|
Loading…
Reference in New Issue
Block a user