servant-foreign-0.16: Helpers for generating clients for servant APIs in any programming language
Safe HaskellSafe-Inferred
LanguageHaskell2010

Servant.Foreign.Inflections

Synopsis

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"