base-compat-0.3.0: A compatibility layer for base
Text.Read
Synopsis
readEither :: Read a => String -> Either String a
Parse a string using the Read instance. Succeeds if there is exactly one valid result. A Left value indicates a parse error.
Read
Left
readMaybe :: Read a => String -> Maybe a
Parse a string using the Read instance. Succeeds if there is exactly one valid result.