rib-0.6.0.0: Static site generator using Shake

Safe HaskellNone
LanguageHaskell2010

Rib.Source

Contents

Synopsis

Source type

data Source repr Source #

A source file on disk

Constructors

Source 

Fields

Instances
Functor Source Source # 
Instance details

Defined in Rib.Source

Methods

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

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

Generic (Source repr) Source # 
Instance details

Defined in Rib.Source

Associated Types

type Rep (Source repr) :: Type -> Type #

Methods

from :: Source repr -> Rep (Source repr) x #

to :: Rep (Source repr) x -> Source repr #

type Rep (Source repr) Source # 
Instance details

Defined in Rib.Source

type Rep (Source repr) = D1 (MetaData "Source" "Rib.Source" "rib-0.6.0.0-G72p0bc7eja71OK4Wy5L6R" False) (C1 (MetaCons "Source" PrefixI True) (S1 (MetaSel (Just "_source_path") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Path Rel File)) :*: (S1 (MetaSel (Just "_source_builtPath") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Path Rel File)) :*: S1 (MetaSel (Just "_source_val") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 repr))))

type SourceReader repr = forall b. Path b File -> Action (Either Text repr) Source #

A function that parses a source representation out of the given file

Source properties

sourcePath :: Source repr -> Path Rel File Source #

Path to the source file (relative to ribInputDir)

sourceUrl :: Source repr -> Text Source #

Relative URL to the generated source HTML.

sourceVal :: Source repr -> repr Source #

Parsed representation of the source.