| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
ToolShed.Test.ReversibleIO
Contents
Description
Functions
Predicates
readPrependedWhiteSpace :: (Eq r, Read r, Show r) => r -> Bool Source #
Checks whether read can skip prepended white space; isReversible is a prerequisite.
Arguments
| :: (Eq a, Read a, Show a) | |
| => (Char -> Bool) | Whether a character of garbage might reasonably be confused with valid data, & therefore should be dropped. |
| -> a | The datum to be written & read. |
| -> String | The text to follow the written datum. |
| -> Bool |
Checks whether read both copes with garbage following the valid input-data, & leaves it unchanged.