moved module and relicensed
This commit is contained in:
parent
5d97898a7c
commit
2e9f128dea
9 changed files with 13 additions and 12 deletions
|
@ -38,8 +38,9 @@ last = Prelude.last
|
|||
|
||||
{- Attempts to read a value from a String.
|
||||
-
|
||||
- Unlike Text.Read.readMaybe, this ignores leading/trailing whitespace,
|
||||
- and throws away any trailing text after the part that can be read.
|
||||
- Unlike Text.Read.readMaybe, this ignores some trailing text
|
||||
- after the part that can be read. However, if the trailing text looks
|
||||
- like another readable value, it fails.
|
||||
-}
|
||||
readish :: Read a => String -> Maybe a
|
||||
readish s = case reads s of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue