cookbook-3.0.1.1: Tiered general-purpose libraries with domain-specific applications.

Copyright(c) 2014 by Nate Pisarski
LicenseBSD3
Maintainernathanpisarski@gmail.com
StabilityStable
PortabilityPortable (Cookbook)
Safe HaskellSafe
LanguageHaskell98

Cookbook.Recipes.Sanitize

Description

Library for sanitizing data, mainly strings.

Synopsis

Documentation

blacklist :: Eq a => [a] -> [a] -> [a] Source #

Restricts an entire list of information from appearing in another list bit-by-bit.

rmleading :: Eq a => [a] -> a -> [a] Source #

Removes a leading character from a list.

up :: Eq a => ([a], [a]) -> [a] -> [a] Source #

Refpos wrapper for two lists, last to first.

down :: Eq a => ([a], [a]) -> [a] -> [a] Source #

Refpos wrapper for two lists, first to last.

rmdb :: Eq a => [a] -> [a] Source #

Removes all doubles in the list, turning them into just one occurrence.

rmdbAll :: Eq a => [a] -> [a] Source #

Wholly removes doubles from a list.

tolower :: String -> String Source #

Moves a string to lower-case.

toupper :: String -> String Source #

Moves a string to upper-case.

rmlws :: String -> String Source #

Removes all of the leading whitespace from a string.

rmsymbols :: String -> String Source #

Removes all "symbols" from a string

notNumeral :: String -> Bool Source #

Check to see if the string is a non-numeral

numeral :: String -> Bool Source #

Check to see if the string is numeral.