hsdev-0.1.8.1: Haskell development library and tool with support of autocompletion, symbol info, go to declaration, find references etc.

Safe HaskellNone
LanguageHaskell98

HsDev.Error

Synopsis

Documentation

hsdevOtherError :: (Exception e, MonadThrow m) => e -> m a Source

Throw as OtherError

hsdevLift :: MonadThrow m => ExceptT String m a -> m a Source

Throw as OtherError

hsdevLiftWith :: MonadThrow m => (String -> HsDevError) -> ExceptT String m a -> m a Source

Throw as some HsDevError

hsdevLiftIO :: MonadCatch m => m a -> m a Source

Rethrow IO exceptions as HsDevError

hsdevLiftIOWith :: MonadCatch m => (String -> HsDevError) -> m a -> m a Source

Rethrow IO exceptions

hsdevIgnore :: MonadCatch m => a -> m a -> m a Source

Ignore hsdev exception

hsdevHandle :: MonadCatch m => (HsDevError -> m a) -> m a -> m a Source

Handle hsdev exception

hsdevLog :: (MonadLog m, MonadCatch m) => Level -> m a -> m a Source

Log hsdev exception and rethrow