HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

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"