dawdle- Generates DDL suggestions based on a CSV file

Safe HaskellSafe




isCTNumber :: String -> Bool Source

Is this a number or a float(y) number? (Can give incorrect results, for example with version numbers like

isInt :: String -> Bool Source

Is this number an int? (Similar to isCTNumber, but without a decimal point)

maybeToEither Source


:: 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.

normalizeNames Source


:: [String]

List of strings to normalize

-> [String]

List of normalized strings

Normalize names by removing special characters, replacing spaces with underscores and lowercasing everything.