hakyll-3.3.0.1: A static website compiler library

Safe HaskellSafe-Infered

Hakyll.Core.Resource

Description

Module exporting the simple Resource type

Synopsis

Documentation

data Resource Source

A resource

resource :: FilePath -> ResourceSource

Smart constructor to ensure we have / as path separator

fromIdentifier :: Identifier a -> ResourceSource

Create a resource from an identifier

toIdentifier :: Resource -> Identifier aSource

Map the resource to an identifier. Note that the group will not be set!