Common helper functions
- explode :: Char -> String -> [String]
- explodeURL :: String -> [String]
- explodeFieldName :: String -> (Int, [String])
- implode :: Char -> [String] -> String
- implodeUrl :: [String] -> String
- humanise :: String -> String
- humaniseCamel :: String -> String
- humaniseUrl :: String -> String -> String
- humanisePath :: [String] -> String -> String
- maybeMaybe :: Maybe (Maybe a) -> Maybe a
- headMaybe :: [a] -> Maybe a
- pop :: Monad m => m [a] -> m (Maybe a)
- appMaybe :: (a -> b) -> Maybe a -> Maybe b
- allNothing :: [Maybe a] -> Bool
- (?) :: Bool -> String -> Maybe String
- (??) :: Bool -> String -> String
- module Data.Map
- module Data.Maybe
String helpers
explodeURL :: String -> [String]Source
Explode for URLs
Explode for field names
implodeUrl :: [String] -> StringSource
Implode for URLs
humaniseCamel :: String -> StringSource
''camelCase'' to ''Camel Case''
humaniseUrl :: String -> String -> StringSource
''/a/url'' to ''A Url''
humanisePath :: [String] -> String -> StringSource
[''a'', ''url''] to ''A Url''
Maybe helpers
allNothing :: [Maybe a] -> BoolSource
List of Nothing
== True
Failure helpers
:: Bool | Test |
-> String | String on failure |
-> Maybe String | Nothing if success, (Just ''message'') on success |
Captures failure
module Data.Map
module Data.Maybe