hakyll-4.12.0.1: A static website compiler library

Safe HaskellNone
LanguageHaskell2010

Hakyll.Core.Rules.Internal

Synopsis

Documentation

data RuleSet Source #

Constructors

RuleSet 

Fields

data RulesState Source #

Constructors

RulesState 

newtype Rules a Source #

The monad used to compose rules

Constructors

Rules 

Instances

Monad Rules Source # 

Methods

(>>=) :: Rules a -> (a -> Rules b) -> Rules b #

(>>) :: Rules a -> Rules b -> Rules b #

return :: a -> Rules a #

fail :: String -> Rules a #

Functor Rules Source # 

Methods

fmap :: (a -> b) -> Rules a -> Rules b #

(<$) :: a -> Rules b -> Rules a #

Applicative Rules Source # 

Methods

pure :: a -> Rules a #

(<*>) :: Rules (a -> b) -> Rules a -> Rules b #

liftA2 :: (a -> b -> c) -> Rules a -> Rules b -> Rules c #

(*>) :: Rules a -> Rules b -> Rules b #

(<*) :: Rules a -> Rules b -> Rules a #

MonadMetadata Rules Source # 

runRules :: Rules a -> Provider -> IO RuleSet Source #

Run a Rules monad, resulting in a RuleSet