Simon Marechal
5238776c65
v0.8.3
2024-01-09 07:11:30 +01:00
Simon Marechal
12a7b2d671
Merge pull request #59 from domenkozar/patch-1
...
Support Int32 and Int64
2024-01-08 21:21:56 +01:00
Domen Kožar
04991c3528
Support Int32 and Int64
2024-01-04 14:35:45 +00:00
Simon Marechal
74f78ce8d4
version 0.8.2
2023-02-11 08:33:18 +01:00
Simon Marechal
f925cc1a3b
Merge pull request #57 from ilyakooo0/iko/tag-single-constructor
...
Tag single constructors when appropriate
2023-02-11 08:32:39 +01:00
8fe50f37c8
Tag single constructors when appropriate
2023-02-06 16:47:39 +03:00
Simon Marechal
3221dd18a9
Merge pull request #56 from ncaq/fix-nest-tuple
...
fixed: avoid error when nested tuple
2022-05-27 10:50:41 +02:00
Simon Marechal
c73a4b6ae7
Merge pull request #55 from ncaq/add-gitignore-for-cabal-v2
...
added: .gitignore created by toptal.com
2022-05-27 10:45:18 +02:00
ncaq
f831e0d8a0
updated: elm test case file
2022-05-27 16:05:20 +09:00
ncaq
e14a1d0ec7
fixed: Avoid errors due to shadowing by sharing namespace within the recurrence
2022-05-27 16:04:04 +09:00
ncaq
d5984f8a12
fixed: use renderElm
where renderSingleTy
was used by mistake
...
Even at this stage the test is failed by shadowing.
~~~
2022-05-27T15:50:03 ❯ elm-test src/MyTests.elm
-- SHADOWING - /home/ncaq/Desktop/elm-bridge/test/current-end-to-end/src/MyTests.elm
These variables cannot have the same name:
179| (\(t1,t2) -> Json.Encode.list identity [(localEncoder_a) t1,((\(t1,t2) -> Json.Encode.list identity [(localEncoder_a) t1,(localEncoder_a) t2])) t2]) v1
^^ ^^
Think of a more helpful name for one of them and you should be all set!
Note: Linters advise against shadowing, so Elm makes “best practices” the
default. Read <https://elm-lang.org/0.19.1/shadowing > for more details on this
choice.
-- SHADOWING - /home/ncaq/Desktop/elm-bridge/test/current-end-to-end/src/MyTests.elm
These variables cannot have the same name:
179| (\(t1,t2) -> Json.Encode.list identity [(localEncoder_a) t1,((\(t1,t2) -> Json.Encode.list identity [(localEncoder_a) t1,(localEncoder_a) t2])) t2]) v1
^^ ^^
Think of a more helpful name for one of them and you should be all set!
Note: Linters advise against shadowing, so Elm makes “best practices” the
default. Read <https://elm-lang.org/0.19.1/shadowing > for more details on this
choice.
`elm make` failed with exit code 1.
~~~
2022-05-27 16:02:19 +09:00
ncaq
0d667ba4c4
added: test: RecordNestTuple
...
When I try to generate an Elm test case for this, I get an error as expected.
~~~
end-to-end-tests: Library Bug: This should never happen!
CallStack (from HasCallStack):
error, called at src/Elm/TyRender.hs:31:31 in elm-bridge-0.8.0-inplace:Elm.TyRender
~~~
2022-05-27 15:47:56 +09:00
ncaq
3f6cb0603c
added: .gitignore created by toptal.com
...
Because cabal v2-build creates a dist-newstyle and it is depressing that it is being tracked.
2022-05-27 15:10:45 +09:00
Simon Marechal
ebb56cdc6d
Merge pull request #54 from ncaq/add-unit-TaggedObject
...
added: support do not have field constructor and it is TaggedObject
2022-05-26 14:05:42 +02:00
ncaq
6043943735
added: objectSet include do not have field constructor
...
I want to complete resolve
[encoding scheme which is either ObjectWithSingleField or bare string for nullary constructors · Issue #4 · bartavelle/json-helpers](https://github.com/bartavelle/json-helpers/issues/4 )
and TaggedObject.
2022-05-26 01:54:38 +09:00
ncaq
a26c0b366b
added: test: SumIncludeUnit
...
[servant-elm :: Stackage Server](https://www.stackage.org/lts-19.8/package/servant-elm-0.7.2 )
use `TaggedObject`, and we use unit data constructor.
2022-05-26 01:38:34 +09:00
Simon Marechal
982c618984
Version 0.8.0
2021-08-30 09:19:23 +02:00
Simon Marechal
85bd13e765
Merge pull request #50 from odanoburu/feature-intmap-translation
...
Convert IntMap to Dict Int
2021-08-30 09:17:59 +02:00
bruno cuconato (@odanoburu)
bccbb3d965
* Convert IntMap to Dict Int
...
Since Dict k accepts any comparable k (not only strings), translate
those too.
2021-08-26 19:27:46 -03:00
Simon Marechal
e40e3997f8
Version 0.7.0
...
Support for GHC 9.0
2021-08-10 14:19:11 +02:00
Simon Marechal
28400342b1
v0.6.1
2020-05-21 11:01:13 +02:00
Simon Marechal
b9d47cae3e
Add dicts in e2e tests
2020-05-21 09:04:49 +02:00
Simon Marechal
888b53f050
Ignore stack.yaml
2020-05-21 09:04:06 +02:00
Simon Marechal
a18ab729e8
Properly encode dictionnaries with string index
2020-05-21 09:03:43 +02:00
Simon Marechal
0856922e8c
Merge pull request #47 from k-bx/master
...
Add functions to generate ADT String parsers/renderers
2020-04-15 18:12:54 +02:00
Kostiantyn Rybnikov
1c93cf0f61
Fix haddock
2020-04-15 17:57:10 +03:00
Kostiantyn Rybnikov
be7f447183
Mention new functions in README
2020-04-15 17:12:48 +03:00
Kostiantyn Rybnikov
297a043b7f
Fixes in parser generation
2020-04-15 16:51:27 +03:00
Kostiantyn Rybnikov
fede707cf3
Implement stringSerForSimpleAdt, stringParserForSimpleAdt
2020-04-15 14:05:41 +03:00
Simon Marechal
35eb9804ac
v0.6.0
2019-10-21 18:31:19 +02:00
Simon Marechal
d9d419e5f9
Fix some 0.19 problems
2019-10-21 18:29:22 +02:00
Simon Marechal
907d91f0c4
Linting!
2019-10-21 17:51:43 +02:00
Simon Marechal
670615bf31
v0.5.2
2019-08-04 19:37:36 +02:00
Simon Marechal
fea4dc7b0b
Merge pull request #45 from matsubara0507/fix-to-elm-tuple-type
...
Fix `toElmType` for tuple type
2019-08-04 19:35:59 +02:00
MATSUBARA Nobutada
e9347d3baa
Fix toElmType for tuple type
2019-08-04 02:34:35 +09:00
MATSUBARA Nobutada
c99f8cd96a
Add toElmType spec for primitive types
2019-08-04 02:31:12 +09:00
Simon Marechal
38289cc4d0
Merge pull request #44 from ibizaman/master
...
fix json-helpers instruction for Elm 0.19
2019-06-09 09:42:13 +02:00
ibizaman
4b6f0e1e69
fix json-helpers instruction for Elm 0.19
2019-06-07 23:11:25 -07:00
Simon Marechal
26eea3f024
v0.5.1
2019-03-21 07:35:09 +01:00
Simon Marechal
916ac17618
update travis job
2019-02-28 14:17:49 +01:00
Simon Marechal
eb08b1422a
rename parameter variable for tuples to 't'
...
Try fixing #43
2019-02-28 06:54:32 +01:00
Simon Marechal
d95b6bbb26
Merge pull request #38 from tmbull/fix-tests-019
...
Updating tests for Elm 0.19.
2018-09-18 08:59:35 +02:00
tmbull
e8586d6ed3
Updating tests for Elm 0.19.
2018-09-17 18:17:46 -05:00
bartavelle
e2b717e316
Extra mutation for UTCTime
2018-09-13 10:02:28 +02:00
Simon Marechal
1d345967f9
Merge pull request #36 from tmbull/end-to-end
...
Making EndToEnd test run with elm-test.
2018-09-11 19:13:36 +02:00
tmbull
797e1fe6eb
Making EndToEnd test run with elm-test.
2018-09-11 11:51:02 -05:00
bartavelle
52c7f4be80
Tuple helpers
2018-09-11 09:29:07 +02:00
bartavelle
6dbf1b72ed
First steps to 0.19
2018-09-10 18:00:59 +02:00
Simon Marechal
887c2dd939
Work in progress for phantom newtypes
...
See #35 .
2018-08-22 07:46:11 +02:00
Simon Marechal
5d298317ea
Merge pull request #34 from tmbull/servant-elm2
...
Adding support for the unit type.
2018-07-11 09:23:10 +02:00