moved module and relicensed

This commit is contained in:
Joey Hess 2018-10-29 23:13:36 -04:00
parent 5d97898a7c
commit 2e9f128dea
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
9 changed files with 13 additions and 12 deletions

View file

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