Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
- newtype Article = Article {}
- isArticle :: String -> Bool
- articles :: [Article]
- newtype Conjunction = Conjunction {}
- conjunctions :: [Conjunction]
- isConjunction :: String -> Bool
- data Preposition
- prepositions :: [Preposition]
- unPreposition :: Preposition -> String
- isOneWordPreposition :: String -> Bool
- isTwoWordPreposition :: String -> String -> Bool
- isThreeWordPreposition :: String -> String -> String -> Bool
- isFourWordPreposition :: String -> String -> String -> String -> Bool
- oneWordPrepositions :: [Preposition]
- twoWordPrepositions :: [Preposition]
- threeWordPrepositions :: [Preposition]
- fourWordPrepositions :: [Preposition]
- toTitle :: String -> String
- (<#>) :: String -> String -> String
- uncurry3 :: (a -> b -> c -> d) -> (a, b, c) -> d
- uncurry4 :: (a -> b -> c -> d -> e) -> (a, b, c, d) -> e
- isElem :: (a -> String) -> [a] -> String -> Bool
Articles
Conjunctions
newtype Conjunction Source #
Constructors
Conjunction | |
Fields |
Instances
Show Conjunction Source # | |
Defined in Data.Text.Titlecase.Internal Methods showsPrec :: Int -> Conjunction -> ShowS # show :: Conjunction -> String # showList :: [Conjunction] -> ShowS # | |
Eq Conjunction Source # | |
Defined in Data.Text.Titlecase.Internal |
conjunctions :: [Conjunction] Source #
isConjunction :: String -> Bool Source #
Prepositions
data Preposition Source #
Constructors
OneWordPreposition String | |
TwoWordPreposition String String | |
ThreeWordPreposition String String String | |
FourWordPreposition String String String String |
Instances
Show Preposition Source # | |
Defined in Data.Text.Titlecase.Internal Methods showsPrec :: Int -> Preposition -> ShowS # show :: Preposition -> String # showList :: [Preposition] -> ShowS # | |
Eq Preposition Source # | |
Defined in Data.Text.Titlecase.Internal |
prepositions :: [Preposition] Source #
The words come from Wikipedia but without subordinating conjunctions.
unPreposition :: Preposition -> String Source #
isOneWordPreposition :: String -> Bool Source #