Commit Graph

167 Commits

Author SHA1 Message Date
bartavelle
61ef397667 Introduce a new reprensentation for sum types
Fixing the bad constructor name bug!
2018-07-09 17:04:30 +02:00
bartavelle
e5fe00d0cc Use a descriptive sum type for sum types variables 2018-07-09 16:50:04 +02:00
bartavelle
e86321e466 Wrote tests exhibiting the bad behaviour
Tag modifiers alter the type constructor names, but should not.
2018-07-09 15:24:30 +02:00
bartavelle
d464a895b9 Added sample test 2018-07-09 15:14:03 +02:00
tmbull
0179e228b5 Adding support for the unit type. 2018-07-02 16:34:58 -05:00
Simon Marechal
681b18aea5
Merge pull request #33 from tmbull/servant-elm
Fixes #31. Exposing and adding EType functions for servant-elm.
2018-06-20 08:05:05 +02:00
tmbull
bf90a81702 Exposing and adding EType functions for servant-elm. 2018-06-19 13:28:46 -05:00
bartavelle
2704e5a9f5 update stack 2018-05-28 09:19:01 +02:00
bartavelle
a1b610637f Drop the phantom type of Tagged data
Tentative fix for #29
2018-03-13 17:30:38 +01:00
bartavelle
1c3c6f2887 Release v0.4.3
Drop support for GHC < 8
2018-02-15 09:35:26 +01:00
bartavelle
6247ebf877 Alter the cabal definition a bit 2018-02-15 09:23:12 +01:00
Simon Marechal
d337259c38 Drop hspec-discover so that travis works 2018-02-14 19:25:03 +01:00
bartavelle
ad53fc7a6a new travis build 2018-02-14 18:08:03 +01:00
bartavelle
e250a5f075 Fixing issue #18
Check that there are more than once constructor in a sum type before
defining a dictionnary.
2018-02-14 17:36:12 +01:00
bartavelle
428553cdd7 Fixing tests that illustrate #27 2018-02-14 17:23:24 +01:00
bartavelle
ac306eff34 WIP #27 2018-02-14 14:59:08 +01:00
bartavelle
fb522a48d6 Switch default value for enwrap unary 2018-02-14 14:21:55 +01:00
bartavelle
a6390f5bf5 Updating end-to-end tests 2018-02-14 13:54:08 +01:00
Simon Marechal
d4ce920250
Merge pull request #26 from aleator/naturals
Added support for Naturals
2018-02-08 16:07:52 +01:00
Ville Tirronen
d7d1e0431f Added support for Naturals
They are just converted to integers on the elm side.
2018-02-08 16:05:52 +02:00
bartavelle
e21171505e Alternative newtype support 2018-01-11 16:02:19 +01:00
Simon Marechal
fb772a597f Expose issue #18 2018-01-11 07:29:17 +01:00
Simon Marechal
5cec7445b4 Merge branch 'master' of github.com:agrafix/elm-bridge 2018-01-11 07:18:01 +01:00
Simon Marechal
632159734c Test for issue #18 2018-01-11 07:17:57 +01:00
Simon Marechal
252ece6600
Merge pull request #23 from Saulzar/master
Make decoder for sum types use 'lazy' combinator to allow recursive types
2017-12-01 09:39:15 +01:00
Oliver Batchelor
37ede40f0a Add lazy for record Sum types, too. Fix decoder test expected literals 2017-12-01 21:20:19 +13:00
Oliver Batchelor
becc2f2bc8 Make decoder for sum types use 'lazy' combinator to allow recursive types 2017-12-01 19:26:52 +13:00
bartavelle
646a2a3f72 Adding dependency to hspec-discover 2017-06-06 14:25:57 +02:00
bartavelle
fb24d26ef6 New travis build scripts 2017-06-06 14:04:03 +02:00
bartavelle
c12c2b56c4 Dropped support for aeson < 1, tentative support for 1.2 2017-06-06 13:51:52 +02:00
bartavelle
c565a3966d Fix upper bound for aeson 2017-06-06 12:47:20 +02:00
bartavelle
9aba149b0c v0.4.1 2017-06-06 11:38:58 +02:00
bartavelle
832afd14e3 Actually fix the tests :( 2017-04-03 11:03:06 +02:00
bartavelle
dff83d0a42 Fix tests and redundant import 2017-04-03 09:28:30 +02:00
bartavelle
3cfa85799d Removal of old Elm import code
Should fix #17.
2017-04-03 09:01:15 +02:00
bartavelle
559deff102 Shorter synopsis :) 2016-11-25 17:18:04 +01:00
bartavelle
e7a67941a5 Longer synopsis 2016-11-25 16:38:54 +01:00
Alexander Thiemann
c07c054d08 Small changelog tweak 2016-11-25 10:58:12 +01:00
bartavelle
60783b81d1 v0.4.0 2016-11-25 10:21:52 +01:00
bartavelle
05621d5e7d Update all code to Elm 0.18 2016-11-25 10:18:20 +01:00
bartavelle
31d5ace75e Removal of unused file 2016-11-24 13:52:18 +01:00
bartavelle
aa48855e19 Do not pollute the global namespace with dictionnaries
This might have a performance impact, but dictionnaries are now living
in a `let` block for "sum unaries".
2016-08-23 17:59:11 +02:00
Alexander Thiemann
76acecc7ac Bump version 2016-05-27 17:36:14 +02:00
bartavelle
c02950405b Support for GHC 8.0.* 2016-05-27 07:52:13 +02:00
Alexander Thiemann
ee590ea62e update changelog, bump version 2016-05-22 12:05:40 +02:00
Alexander Thiemann
834e73c9e5 Merge pull request #12 from Kyarigwo/UpdateForElm0.17
Updated for Elm 0.17
2016-05-22 10:22:40 +02:00
Bruce Wielinga
87870f171d Added switch for Elm 0.16 compatibility
make module will by default still make 0.16 compatible modules, but
makeModuleWithVersion takes a Version argument to determine which
version to generate.
2016-05-21 07:59:07 +10:00
Bruce Wielinga
0e1b32e0fd Revert "Updated for Elm 0.17"
This reverts commit 00acc98990.
2016-05-17 06:40:33 +10:00
Bruce Wielinga
00acc98990 Updated for Elm 0.17
Changed where to exposing(..) in generated modules
2016-05-15 15:28:12 +10:00
bartavelle
b6db7631fa v0.2.2.1 2016-05-02 19:57:07 +02:00