Giter Club home page Giter Club logo

elm-gen's People

Contributors

gbtb avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

elm-gen's Issues

Wrong default npm version

By default npm installs 0.1.1 version, while 0.1.3 already exists and pushed into npm repo(and can even be installed by manually adding @0.1.3).

Clean up the mess

  • Expand Readme and examples
  • Document public api functions
  • Consider usage of runtime exceptions in fromJust (maybe it is not that painfull to wrap code up into Result's and Maybe's?)
  • Perform overall architectural cleanup/refactoring to ease understanding, properly split up functions and so on...

Hardcoded Json.* imports

Every now and then I use hardcoded JE and JD aliases, which is wrong. It should be configurable.

Implement union type generation features

Some of the features for union type generation, was already added to config, but not implemented in reality.
type UnionTypeGeneratorFeature = TrivialString | TrivialObject | DefaultConstructor

elm 0.19 transition

It has two major parts:

  • Ensure no breaking changes in json libs/syntax happend (maybe it will require addition of an elm-version config field/arg)
  • Transfer whole project into 0.19. Major block here is elm-ast, which relies on custom parser lib, which heaily uses custom bin ops, which will be deprecated in 0.19 :D.

Online demo

Impl Online demo-site, with simple one-file generation case could be fun and not so hard to develop.

Support namespaced type names

Fast enough i have met a pretty simple usecase, in which current type name handling in library - single plain string - doesn't allow code generation. This problem affects whole library, but could probably be solved separately on per-usecase basis.

  • Allow provide decoders for namespaced types - e.g. Dict.Dict, Material.Model.
  • More stuff to come, I suppose.

Nested records

Nested record declaration causes error:
Not allowed type in recordField

Fix Dict.Dict test case

I found, that its actually imposible to successfully provide a custom decoder for Dict.Dict kind of type (with type variables).

  • Fix this test case
  • Look into general approach for generating decoders for types with type variables

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.