shakebook-0.2.0.4: Shake-based technical documentation generator; HTML & PDF

Safe HaskellNone
LanguageHaskell2010

Shakebook.Rules

Synopsis

Documentation

comonadStoreRuleGen Source #

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.

cofreeRuleGen Source #

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.