HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecasing-0.1.4.1Haskell2010

Text.Casing

Conversions between several common identifier casing conventions:

  • PascalCase - no spacing between words, first letter in word is uppercase, all others are lowercase.

  • camelCase - like PascalCase, but the very first letter is lowercase.

  • kebab-case - everything lowercase, dash delimits words.

  • snake_Case - underscores delimit words, case is unrestricted.

  • quiet_snake_case - underscores delimit words, everything lowercase.

  • SCREAMING_SNAKE_CASE - underscores delimit words, everything uppercase.

  • 1 type
  • 20 values
  • Packagecasing-0.1.4.1
  • Exports21
  • LanguageHaskell2010
  • LicenceMIT
  • SourceCasing.hs

Types

1 declaration
newtypenewtype Identifier a
#

An opaque type that represents a parsed identifier.

Constructors

Instances7Monad, Functor, Applicative, Foldable, Traversable, Eq, …

Parsing

5 declarations

Generating

7 declarations

Shorthand functions

7 declarations

Miscellaneous

1 declaration

Drop the first word from a parsed identifier. Typical usage is between parsing and writing, e.g.: toKebab . dropPrefix . fromAny $ "strHelloWorld" == "hello-world"