{"id":23626082,"url":"https://github.com/norpan/elm-dynamic-types","last_synced_at":"2025-11-07T16:30:28.228Z","repository":{"id":189965061,"uuid":"84201567","full_name":"norpan/elm-dynamic-types","owner":"norpan","description":"An experiment with dynamic types in Elm","archived":false,"fork":false,"pushed_at":"2017-03-07T13:25:26.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T22:59:47.379Z","etag":null,"topics":["dynamic-types","elm"],"latest_commit_sha":null,"homepage":"","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/norpan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-03-07T13:21:48.000Z","updated_at":"2023-09-08T17:21:55.000Z","dependencies_parsed_at":"2023-08-22T18:10:38.146Z","dependency_job_id":null,"html_url":"https://github.com/norpan/elm-dynamic-types","commit_stats":null,"previous_names":["norpan/elm-dynamic-types"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norpan%2Felm-dynamic-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norpan%2Felm-dynamic-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norpan%2Felm-dynamic-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norpan%2Felm-dynamic-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/norpan","download_url":"https://codeload.github.com/norpan/elm-dynamic-types/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239533065,"owners_count":19654617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dynamic-types","elm"],"created_at":"2024-12-27T22:39:59.289Z","updated_at":"2025-11-07T16:30:28.175Z","avatar_url":"https://github.com/norpan.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dynamic Types in Elm\n\nThis is an experiment in implementing dynamic data and types in Elm.\nOne rationale for this is to be able to write something like this:\n```elm\nDynamic.Json.decoder #Type : Json.Decode.Decoder Type\n```\n\nHowever, there is obviosly a lot of other things that can be done too.\n\n## Compiler extension\nI started experimenting with a compiler extension, and it seems feasible\nto hook into the \"Canonicalize\" stage and just generate ValidExpr from a raw\n\"#Type\" expression. We have the canonical type there and generating valid\nexpressions seems straightforward enough.\n\nBut it's not done yet.\n\n## Example\nSee the `Example.elm` file for an example on how the generated code would\nlook and how it could be used.\n\n```\nExample.run Example.test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorpan%2Felm-dynamic-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnorpan%2Felm-dynamic-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorpan%2Felm-dynamic-types/lists"}