codeforces-cli-0.1.0: Command line interface to interact with Codeforces.
Safe HaskellNone
LanguageHaskell2010

Codeforces.Error

Description

Provides a way of dealing with errors encountered during the retrieval or processing of data from the Codeforces API.

Synopsis

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.