b9-0.2.1: A build tool and library for virtual machines.

Safe HaskellNone
LanguageHaskell2010

B9.ConfigUtils

Description

Extensions to ConfigFile and utility functions for dealing with configuration in general and reading/writing files.

Synopsis

Documentation

allOn :: (a -> Maybe Bool) -> a -> a -> Maybe Bool Source

lastOn :: (a -> Maybe b) -> a -> a -> Maybe b Source

tell :: (MonadIO m, Show a) => FilePath -> a -> m () Source

consult :: (MonadIO m, Read a) => FilePath -> m a Source

getDirectoryFiles :: MonadIO m => FilePath -> m [FilePath] Source

Get all files from dir that is get ONLY files not directories

maybeConsult :: (MonadIO m, Read a) => Maybe FilePath -> a -> m a Source