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

PortabilityPortable (Cookbook)
StabilityStable
Maintainernathanpisarski@gmail.com
Safe HaskellSafe-Inferred

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 -> StringSource

Moves a string to lower-case.

toupper :: String -> StringSource

Moves a string to upper-case.

rmlws :: String -> StringSource

Removes all of the leading whitespace from a string.

rmsymbols :: String -> StringSource

Removes all symbols from a string.