@@ -12,7 +12,6 @@ import Control.Concurrent.MVar (newEmptyMVar, takeMVar,
1212import Control.Exception (AsyncException, fromException,
1313 handle, throw)
1414import Control.Monad (forever, void, when)
15−import Filesystem.Path.CurrentOS (decodeString, encodeString)
1615import System.Directory (canonicalizePath)
1716import System.FilePath (pathSeparators)
1817import System.FSNotify (Event (..), startManager,
@@ -41,7 +40,7 @@ import Hakyll.Core.Identifier.Pattern
4140-- a site as soon as any changes occur
4241watchUpdates :: Configuration -> IO Pattern -> IO ()
4342watchUpdates conf update = do
44− let providerDir = decodeString $ providerDirectory conf
43+ let providerDir = providerDirectory conf
4544 shouldBuild <- newEmptyMVar
4645 pattern <- update
4746 fullProviderDir <- canonicalizePath $ providerDirectory conf
@@ -66,7 +65,7 @@ watchUpdates conf update = do
6665 (\e -> case fromException e of
6766 Nothing -> putStrLn (show e)
6867 Just async -> throw (async :: AsyncException))
69− (update' event $ encodeString providerDir)
68+ (update' event providerDir)
7069
7170 -- Send an event whenever something occurs so that the thread described
7271 -- above will do a build.
@@ -107,7 +106,7 @@ watchUpdates conf update = do
107106
108107--------------------------------------------------------------------------------
109108eventPath :: Event -> FilePath
110−eventPath evt = encodeString $ evtPath evt
109+eventPath evt = evtPath evt
111110 where
112111 evtPath (Added p _) = p
113112 evtPath (Modified p _) = p