| Safe Haskell | Safe |
|---|---|
| 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 #
Constructors
| Conjunction | |
Fields | |
Instances
| Eq Conjunction # | |
Defined in Data.Text.Titlecase.Internal | |
| Show Conjunction # | |
Defined in Data.Text.Titlecase.Internal Methods showsPrec :: Int -> Conjunction -> ShowS # show :: Conjunction -> String # showList :: [Conjunction] -> ShowS # | |
conjunctions :: [Conjunction] #
isConjunction :: String -> Bool #
Prepositions
data Preposition #
Constructors
| OneWordPreposition String | |
| TwoWordPreposition String String | |
| ThreeWordPreposition String String String | |
| FourWordPreposition String String String String |
Instances
| Eq Preposition # | |
Defined in Data.Text.Titlecase.Internal | |
| Show Preposition # | |
Defined in Data.Text.Titlecase.Internal Methods showsPrec :: Int -> Preposition -> ShowS # show :: Preposition -> String # showList :: [Preposition] -> ShowS # | |
prepositions :: [Preposition] #
The words come from Wikipedia but without subordinating conjunctions.
unPreposition :: Preposition -> String #
isOneWordPreposition :: String -> Bool #
isTwoWordPreposition :: String -> String -> Bool #