Compiler.ModuleName

A module for working with Gren module names.

type ModuleName

A valid module name like Module.Name.

Conversions

fromString : String -> Maybe ModuleName

Construct a ModuleName from a String. Will return Nothing if the String doesn't represent a valid module name.

jsonDecoder : Decoder ModuleName

JSON Decoder for ModuleName.

Conversions

toString : ModuleName -> String

String representation for ModuleName.

toJson : ModuleName -> Value

JSON Encoder for ModuleName.