base-compat-0.3.0: A compatibility layer for base

Safe HaskellSafe-Inferred

Text.Read

Synopsis

Documentation

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.

readMaybe :: Read a => String -> Maybe a

Parse a string using the Read instance. Succeeds if there is exactly one valid result.