arch-hs-0.11.1.0: Distribute hackage packages to archlinux
Copyright(c) 2020-2021 berberman
LicenseMIT
Maintainerberberman <berberman@yandex.com>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.ArchHs.Exception

Description

Exceptions used in this project.

Synopsis

Documentation

printHandledIOException :: IO () -> IO () Source #

Catch IOException and print it.

printAppResult :: IO (Either MyException ()) -> IO () Source #

Print the result of errorToIOFinal.

tryMaybe :: Member WithMyErr r => Sem r a -> Sem r (Maybe a) Source #

Like try but discard the concrete exception.

interceptHttpException :: Members [WithMyErr, Embed IO] r => IO a -> Sem r a Source #

Catch the HttpException thrown in IO monad, then re-throw it with NetworkException.