Helper functions for working with names in source code.
Checks if a name matches an Elm keyword, and proposes a different name to use instead, which is the original with an underscore appended.
safeName "type" == "type_"CCL stands for camel-case-upper. This puts a name into camel case upper format.
Additional it checks if the name matches an Elm keyword, and proposes a different name to use instead, which is the original with an underscore appended.
safeCCL "type" == "Type_"
safeCCL "someVar" == "SomeVar"
safeCCL "MyList" == "MyList"CCL stands for camel-case-lower. This puts a name into camel case lower format.
Additional it checks if the name matches an Elm keyword, and proposes a different name to use instead, which is the original with an underscore appended.
safeCCL "type" == "type_"
safeCCL "someVar" == "someVar"
safeCCL "MyList" == "myList"Sorts a list of named things alphabetically.
Sorts an non-empty list of named things alphabetically.
Checks that a name starts with an alpha character, and is followed only by alpha and numeric characters.