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.Module

Helpers for working with module name strings in elm.json files.

Modules

type Name

A guaranteed valid Elm module name.

String Conversions

toString : Name -> String

Convert a Name to a String that works in elm.json

fromString : String -> Maybe Name

Try to convert a String into a Name:

fromString "Maybe"       == Just ...
fromString "Elm.Name"  == Just ...
fromString "Json.Decode" == Just ...
fromString "json.decode" == Nothing
fromString "Json_Decode" == Nothing

JSON Conversions

encode : Name -> Value

Turn a Name into a string for use in elm.json

decoder : Decoder Name

Decode the module name strings that appear in elm.json