Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
22 lines (13 sloc)
419 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Graphql.Parser.CamelCaseName exposing (CamelCaseName, build, normalized, raw) | |
import Graphql.Generator.Normalize as Normalize | |
type CamelCaseName | |
= CamelCaseName String | |
build : String -> CamelCaseName | |
build = | |
CamelCaseName | |
raw : CamelCaseName -> String | |
raw (CamelCaseName name) = | |
name | |
normalized : CamelCaseName -> String | |
normalized (CamelCaseName name) = | |
name |> Normalize.decapitalized |