eco-pro/project-metadata-utils/1.0.0

Rerouted (archive, verified). The original repository is gone. This copy comes from an archive (Software Heritage). The Lamdera package server serves a copy recovered from swh:1:rev:ccedc9b26200893c07fe8295a6a061cb4d4b8e7f (Software Heritage, origin https://github.com/eco-pro/project-metadata-utils).

What we checked: Software Heritage archived tag 1.0.0 of github.com/eco-pro/project-metadata-utils at commit ccedc9b26200; its commit ccedc9b26200 is from 2021-02-20 17:08 UTC, before the version was published (2021-02-20 17:14 UTC); elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip is our own, made from Software Heritage's copy of the files Elm uses, so its SHA-1 is not the published one.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/eco-pro/project-metadata-utils/zipball/1.0.0/

Elm.Type

This is specifically for handling the types that appear in documentation generated by elm-make. If you are looking to parse arbitrary type signatures with creative indentation (e.g. newlines and comments) this library will not do what you want. Instead, check out the source code and go from there. It's not too tough!

type Type
= Var String
| Lambda Type Type
| Tuple (List Type)
| Type String (List Type)
| Record (List ( String, Type )) (Maybe String)

Represent Elm types as values! Here are some examples:

Int            ==> Type "Int" []


a -> b         ==> Lambda (Var "a") (Var "b")


( a, b )       ==> Tuple [ Var "a", Var "b" ]


Maybe a        ==> Type "Maybe" [ Var "a" ]


{ x : Float }  ==> Record [("x", Type "Float" [])] Nothing
decoder : Decoder Type

Decode the JSON representation of Type values.