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

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

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"