slick-1.0.1.1: A quick & easy static site builder built with shake and pandoc.

Copyright(c) Chris Penner 2019
LicenseBSD3
Safe HaskellNone
LanguageHaskell2010

Slick.Utils

Description

 
Synopsis

Documentation

getDirectoryPaths Source #

Arguments

:: [FilePath]

file pattern like *.md

-> [FilePath]

directories to look at

-> Action [FilePath] 

Given a list of extensions and directories, find all files that match, and return full paths.

convert :: (FromJSON a, ToJSON a, FromJSON b) => a -> Action b Source #

Attempt to convert between two JSON serializable objects (or Values). Failure to deserialize fails the Shake build.