base-compat-0.2.0: Provides readMaybe, lookupEnv, etc. for older versions of 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.