HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

Moduleservant-foreign-0.16.1Haskell2010

Servant.Foreign.Inflections

  • 6 values
valueconcatCase :: FunctionName -> Text
#

Simply concat each part of the FunctionName together.

[ "get", "documents", "by", "id" ] → "getdocumentsbyid"
valuesnakeCase :: FunctionName -> Text
#

Use the snake_case convention. Each part is separated by a single underscore character.

[ "get", "documents", "by", "id" ] → "get_documents_by_id"
valuecamelCase :: FunctionName -> Text
#

Use the camelCase convention. The first part is lower case, every other part starts with an upper case character.

[ "get", "documents", "by", "id" ] → "getDocumentsById"