HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

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"