Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- isCTNumber :: String -> Bool
- isInt :: String -> Bool
- maybeToEither :: String -> Maybe a -> Either String a
- allTheSame :: Eq a => [a] -> Bool
- normalizeNames :: [String] -> [String]
Documentation
isCTNumber :: String -> Bool Source
Is this a number or a float(y) number? (Can give incorrect results, for example with version numbers like 0.5.1.1)
isInt :: String -> Bool Source
Is this number an int? (Similar to isCTNumber
, but without a decimal point)
:: String | Error string |
-> Maybe a | Maybe value to check |
-> Either String a | Either Error string or the Just value from the maybe |
Promote a Maybe to an Either with an error string
allTheSame :: Eq a => [a] -> Bool Source
Check that all the items in a list are identical. This is used to verify lengths in the algorithm.
Normalize names by removing special characters, replacing spaces with underscores and lowercasing everything.