Safe Haskell | None |
---|---|
Language | Haskell2010 |
Source type
A source file on disk
Source | |
|
Instances
Functor Source Source # | |
Generic (Source repr) Source # | |
type Rep (Source repr) Source # | |
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
)