From b37da38d3911bbc8381a39fe526e69599d9ddcf1 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Tue, 12 Apr 2011 10:09:03 +0200 Subject: Major refactoring of identifiers/resources/groups --- src-interval/Hakyll/Web/Preview/Poll.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src-interval/Hakyll/Web') diff --git a/src-interval/Hakyll/Web/Preview/Poll.hs b/src-interval/Hakyll/Web/Preview/Poll.hs index 7a11b6c..0c9f771 100644 --- a/src-interval/Hakyll/Web/Preview/Poll.hs +++ b/src-interval/Hakyll/Web/Preview/Poll.hs @@ -14,7 +14,6 @@ import qualified Data.Set as S import System.Directory (getModificationTime, doesFileExist) import Hakyll.Core.Configuration -import Hakyll.Core.Identifier import Hakyll.Core.Resource -- | A preview thread that periodically recompiles the site. @@ -24,7 +23,7 @@ previewPoll :: HakyllConfiguration -- ^ Configuration -> IO () -- ^ Action called when something changes -> IO () -- ^ Can block forever previewPoll _ resources callback = do - let files = map (toFilePath . unResource) $ S.toList resources + let files = map unResource $ S.toList resources time <- getClockTime loop files time where -- cgit v1.2.3