json-autotype-3.0.0: Automatic type declaration for JSON input data

Safe HaskellNone
LanguageHaskell2010

Data.Aeson.AutoType.CodeGen.ElmFormat

Description

Formatting type declarations and class instances for inferred types.

Synopsis

Documentation

displaySplitTypes :: Map Text Type -> Text Source #

Display an environment of types split by name.

normalizeTypeName :: Text -> Text Source #

Normalize type name by: 1. Treating all characters that are not acceptable in Haskell variable name as end of word. 2. Capitalizing each word, but a first (camelCase). 3. Adding underscore if first character is non-alphabetic. 4. Escaping Haskell keywords if the whole identifier is such keyword. 5. If identifier is empty, then substituting JsonEmptyKey for its name.