Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides a way of dealing with errors encountered during the retrieval or processing of data from the Codeforces API.
Synopsis
- data CodeforcesError
- showE :: CodeforcesError -> ErrorLog
- handleE :: IO (Either CodeforcesError a) -> IO ()
Documentation
data CodeforcesError Source #
An error that may occur in this application.
showE :: CodeforcesError -> ErrorLog Source #
Returns a human-friendly error message with error details.
handleE :: IO (Either CodeforcesError a) -> IO () Source #
handleE
m
runs the computation m
that may produce a
CodeforcesError
. If an error is encountered, its error message is printed.