summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim McStanton <jim@jhmcstanton.com>2018-10-12 12:16:57 -0500
committerJasper Van der Jeugt <jaspervdj@gmail.com>2018-10-13 14:08:55 +0100
commit6b5010b38eec92168f62fa4b1b296bae12f14f21 (patch)
tree1d4f155949a58b457605d997ae4b8b38bd8e6a32
parenta4d8fd6003559847ffdeaf73b8e87b007577f206 (diff)
downloadhakyll-6b5010b38eec92168f62fa4b1b296bae12f14f21.tar.gz
Updated type of fromFilePath to use FilePath instead of String
Resolves #661
-rw-r--r--lib/Hakyll/Core/Identifier.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Hakyll/Core/Identifier.hs b/lib/Hakyll/Core/Identifier.hs
index 777811c..6054771 100644
--- a/lib/Hakyll/Core/Identifier.hs
+++ b/lib/Hakyll/Core/Identifier.hs
@@ -62,7 +62,7 @@ instance Show Identifier where
--------------------------------------------------------------------------------
-- | Parse an identifier from a string
-fromFilePath :: String -> Identifier
+fromFilePath :: FilePath -> Identifier
fromFilePath = Identifier Nothing .
intercalate "/" . filter (not . null) . split'
where