| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Shakebook.Rules
Synopsis
- comonadStoreRuleGen :: ComonadStore s w => FilePattern -> (FilePattern -> s) -> (FilePattern -> a) -> (a -> Action (w b)) -> (b -> FilePath -> Action ()) -> Rules ()
- cofreeRuleGen :: (Traversable w, ComonadCofree f w) => w FilePath -> (FilePath -> FilePath) -> (w FilePath -> FilePath -> Action ()) -> Rules ()
Documentation
Arguments
| :: ComonadStore s w | |
| => FilePattern | The filepattern rule. |
| -> (FilePattern -> s) | How to extract a position marker from the filepattern. |
| -> (FilePattern -> a) | How to extract an id from the filepattern. |
| -> (a -> Action (w b)) | How to turn the id into a searchable store. |
| -> (b -> FilePath -> Action ()) | |
| -> Rules () |
Generates Shake Rules from a FilePattern via an action that returns a ComonadStore.
Arguments
| :: (Traversable w, ComonadCofree f w) | |
| => w FilePath | A cofree comonad of FilePaths |
| -> (FilePath -> FilePath) | How to find the source for each out FilePath. |
| -> (w FilePath -> FilePath -> Action ()) | How to generate a write Action for the target of a comonad. This is extended over the whole comonad. |
| -> Rules () |
Generates Shake Rules from a ComonadCofree of FilePath sources.