From d3f15b18a537aac6364c27c6e726bcd11c869888 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Sat, 28 May 2011 22:33:48 +0200 Subject: Type-safe identifiers in haddocks --- src/Hakyll/Core/Identifier/Pattern.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Hakyll/Core/Identifier') diff --git a/src/Hakyll/Core/Identifier/Pattern.hs b/src/Hakyll/Core/Identifier/Pattern.hs index 6bbfad8..8263f29 100644 --- a/src/Hakyll/Core/Identifier/Pattern.hs +++ b/src/Hakyll/Core/Identifier/Pattern.hs @@ -31,6 +31,10 @@ -- The 'capture' function allows the user to get access to the elements captured -- by the capture elements in the pattern. -- +-- Like an 'Identifier', a 'Pattern' also has a type parameter. This is simply +-- an extra layer of safety, and can be discarded using the 'castPattern' +-- function. +-- module Hakyll.Core.Identifier.Pattern ( Pattern , castPattern -- cgit v1.2.3