Builds JSON decoders and encoders for your Elm types.
Copy/paste your type definitions into the live version.
Check out FranzSkuffka's command line tool.
Elm decoder generator
License: MIT License
Builds JSON decoders and encoders for your Elm types.
Copy/paste your type definitions into the live version.
Check out FranzSkuffka's command line tool.
There is an elm-in-elm compiler. They are using elm/parser and only that.
If decgen uses elm/parser we could contribute to and benefit from elm-in-elm/compiler
More info: elm-in-elm/compiler#26
decgen is choking on extensible types.
Input
type alias LineConfiguration_ a = {a | paint : PaintCode, rim : RimCode, engine : EngineId}
type alias LineConfiguration = LineConfiguration_ {}
type alias Configuration = LineConfiguration_ {line : LineCode}
Expected
type alias Record_LineConfiguration = {paint : PaintCode, rim : RimCode, engine : EngineId}
type alias Record_Configuration = {line : LineCode, paint : PaintCode, rim : RimCode, engine : EngineId}
Result
type alias Record_line_LineCode_ = {line: LineCode}
type alias Record___ = {: }
What are the suggested strategies for dealing with imported types?
The CLI I wrote just reads one file.
Should we also get the imported modules and Concatenate them? What strategy do you suggest?
Any chance to get union type support in this?
https://dkodaj.github.io/decgen seems broken for union types - there is simply no output for type A = B | C
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.