rib-0.12.0.0: Static site generator based on Shake

Safe HaskellNone
LanguageHaskell2010

Rib.Parser.Dhall

Contents

Description

Parser for Dhall configuration files.

Use makeHaskellTypes to create the Haskell type first. And then call parse from your Shake action.

Synopsis

Parsing

parse Source #

Arguments

:: FromDhall a 
=> [FilePath]

Dependent .dhall files, which must trigger a rebuild

-> FilePath

The Dhall file to parse. Relative to ribInputDir.

-> Action a 

Parse a Dhall file as Haskell type.