shake-plus-extended-0.1.0.0: Experimental extensions to shake-plus

CopyrightCopyright (C) 2020 Daniel Firth
MaintainerDaniel Firth <dan.firth@homotopic.tech
Safe HaskellNone
LanguageHaskell2010

Development.Shake.Plus.Extended.Loaders

Description

License : MIT Stability : experimental

Experimental loaders for shake-plus. Load a collection of FilePatterns as a HashMap.

Synopsis

Documentation

batchLoad Source #

Arguments

:: MonadAction m 
=> Path b Dir

The directory to search in

-> [FilePattern]

A filepattern to match against.

-> (Path b File -> m a)

A newCache operation that loads the file and turns it into some a.

-> m (HashMap (Path Rel File) a) 

Load a directory of FilePatterns via some loading function. This should be a newCache operation that takes full filepaths.

batchLoadWithin Source #

Arguments

:: MonadAction m 
=> Within b [FilePattern]

The directory and filepattern to search.

-> (Within b (Path Rel File) -> m a)

A newCache operation that loads the file and turns it into some a.

-> m (Within b (HashMap (Path Rel File) a)) 

Like batchLoad, but returns an Within of a Dir containing the HashMap

batchLoadWithin' Source #

Arguments

:: MonadAction m 
=> Within b [FilePattern]

The directory and filepattern to search.

-> (Within b (Path Rel File) -> m a)

A newCache operation that loads the file and turns it into some a.

-> m (HashMap (Within b (Path Rel File)) a) 

Like batchLoadWithin', but returns a HashMap containing Within values instead of an Within of a Hashmap.

batchLoadIndex :: (MonadAction m, Indexable ixs x) => (Path Rel File -> m x) -> Path Rel Dir -> [FilePattern] -> m (IxSet ixs x) Source #

Take a loading function and a filepattern and return an IxSet