directory-layout-0.3.1.0: Declare, construct and verify directory layout

Safe HaskellNone

System.Directory.Layout.Errored

Description

Wrappers around exception throwing functions and related routines

Synopsis

Documentation

data LayoutException Source

Information about cought exceptions in various routines

createFile :: MonadIO m => FilePath -> Maybe Text -> m (Either LayoutException ())Source

IO-exceptions-free writeFile

readFile :: MonadIO m => FilePath -> Text -> m (Either LayoutException ())Source

IO-exceptions-free readFile

anyfail :: MonadWriter [w] m => m (Either w a) -> m ()Source

Log failures