ListLike-1.0.0: Generic support for list-like structuresContentsIndex
Data.ListLike.String
Portabilityportable
Stabilityprovisional
MaintainerJohn Goerzen <jgoerzen@complete.org>
Description

String-like functions

Written by John Goerzen, jgoerzen@complete.org

Synopsis
class StringLike s where
toString :: s -> String
fromString :: String -> s
lines :: ListLike full s => s -> full
words :: ListLike full s => s -> full
unlines :: ListLike full s => full -> s
unwords :: ListLike full s => full -> s
Documentation
class StringLike s where
An extension to ListLike for those data types that are similar to a String. Minimal complete definition is toString and fromString.
Methods
toString :: s -> String
Converts the structure to a String
fromString :: String -> s
Converts a String to a list
lines :: ListLike full s => s -> full
Breaks a string into a list of strings
words :: ListLike full s => s -> full
Breaks a string into a list of words
unlines :: ListLike full s => full -> s
Joins lines
unwords :: ListLike full s => full -> s
Joins words
show/hide Instances
StringLike ByteString
StringLike ByteString
StringLike String
(Integral i, Ix i) => StringLike (Array i Char)
Produced by Haddock version 0.8