summaryrefslogtreecommitdiff
path: root/src/Hakyll/Web
diff options
context:
space:
mode:
authorSaeid Al-Wazzan <saeid.wazzan@invigo.com>2013-09-16 01:17:38 +0300
committerSaeid Al-Wazzan <saeid.wazzan@invigo.com>2013-09-16 01:17:38 +0300
commita796988a1672fee709c52968347f43ad0bede508 (patch)
tree139f864d8f48168c7840f3655cd31ca143775917 /src/Hakyll/Web
parent11d5b8064a10eee1a34836051b0c2000fe8b03a4 (diff)
downloadhakyll-a796988a1672fee709c52968347f43ad0bede508.tar.gz
Fix incorrect output of toSiteRoot on Windows.
toSiteRoot uses splitPath, joinPath, and takeDirectory from the System.FilePath module. On Windows systems, the implementation of joinPath will build up a path using the Windows path separator "\\". We don't want this behavior since the paths we are working with are always URLs, so we force POSIX behavior for System.FilePath.
Diffstat (limited to 'src/Hakyll/Web')
-rw-r--r--src/Hakyll/Web/Html.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hakyll/Web/Html.hs b/src/Hakyll/Web/Html.hs
index 3a0aa3b..f5a7ccc 100644
--- a/src/Hakyll/Web/Html.hs
+++ b/src/Hakyll/Web/Html.hs
@@ -25,7 +25,7 @@ import Data.Char (digitToInt, intToDigit,
isDigit, toLower)
import Data.List (isPrefixOf)
import qualified Data.Set as S
-import System.FilePath (joinPath, splitPath,
+import System.FilePath.Posix (joinPath, splitPath,
takeDirectory)
import Text.Blaze.Html (toHtml)
import Text.Blaze.Html.Renderer.String (renderHtml)