Holumbus-Searchengine-1.2.3: A search and indexing engine.

Portabilityportable
Stabilityexperimental
MaintainerTimo B. Huebel (tbh@holumbus.org)
Safe HaskellNone

Holumbus.Utility

Description

Version : 0.1

Small utility functions which are probably useful somewhere else, too.

Synopsis

Documentation

split :: Eq a => [a] -> [a] -> [[a]]Source

Split a string into seperate strings at a specific character sequence.

join :: Eq a => [a] -> [[a]] -> [a]Source

Join with a seperating character sequence.

strip :: String -> StringSource

Removes leading and trailing whitespace from a string.

stripl :: String -> StringSource

Removes leading whitespace from a string.

stripr :: String -> StringSource

Removes trailing whitespace from a string.

stripWith :: (a -> Bool) -> [a] -> [a]Source

Strip leading and trailing elements matching a predicate.

strictDecodeFile :: Binary a => FilePath -> IO aSource

found on the haskell cafe mailing list (http://www.haskell.org/pipermail/haskell-cafe/2008-April/041970.html). Depends on bytestring >= 0.9.0.4 (?)

partitionListByLength :: Int -> [a] -> [[a]]Source

partition the list of input data into a list of input data lists of approximately the same specified length

partitionListByCount :: Int -> [a] -> [[a]]Source

partition the list of input data into a list of a specified number of input data lists with approximately the same length

escape :: String -> StringSource

Escapes non-alphanumeric or space characters in a String

computeDocBase :: ArrowXml a => a XmlTree StringSource

Compute the base of a webpage stolen from Uwe Schmidt, http://www.haskell.org/haskellwiki/HXT