Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Servant.Foreign.Inflections
Synopsis
- concatCase :: FunctionName -> Text
- snakeCase :: FunctionName -> Text
- camelCase :: FunctionName -> Text
- concatCaseL :: Getter FunctionName Text
- snakeCaseL :: Getter FunctionName Text
- camelCaseL :: Getter FunctionName Text
Documentation
concatCase :: FunctionName -> Text Source #
Simply concat each part of the FunctionName together.
[ "get", "documents", "by", "id" ] → "getdocumentsbyid"
snakeCase :: FunctionName -> Text Source #
Use the snake_case convention. Each part is separated by a single underscore character.
[ "get", "documents", "by", "id" ] → "get_documents_by_id"
camelCase :: FunctionName -> Text Source #
Use the camelCase convention. The first part is lower case, every other part starts with an upper case character.
[ "get", "documents", "by", "id" ] → "getDocumentsById"
concatCaseL :: Getter FunctionName Text Source #
snakeCaseL :: Getter FunctionName Text Source #
camelCaseL :: Getter FunctionName Text Source #