titlecase-1.0.1: Convert English Words to Title Case
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Text.Titlecase.Internal

Description

As the name implies, this module is meant to be used only if you want to get access to the internals, say, if you're unhappy with the provided titlecase function.

Synopsis

Articles

newtype Article Source #

Constructors

Article 

Fields

Instances

Instances details
Show Article Source # 
Instance details

Defined in Data.Text.Titlecase.Internal

Eq Article Source # 
Instance details

Defined in Data.Text.Titlecase.Internal

Methods

(==) :: Article -> Article -> Bool #

(/=) :: Article -> Article -> Bool #

Conjunctions

newtype Conjunction Source #

Constructors

Conjunction 

Instances

Instances details
Show Conjunction Source # 
Instance details

Defined in Data.Text.Titlecase.Internal

Eq Conjunction Source # 
Instance details

Defined in Data.Text.Titlecase.Internal

Prepositions

Helper functions

toTitle :: String -> String Source #

Capitalize the first character of a string.

uncurry3 :: (a -> b -> c -> d) -> (a, b, c) -> d Source #

uncurry4 :: (a -> b -> c -> d -> e) -> (a, b, c, d) -> e Source #

isElem :: (a -> String) -> [a] -> String -> Bool Source #