From 6b5010b38eec92168f62fa4b1b296bae12f14f21 Mon Sep 17 00:00:00 2001 From: Jim McStanton Date: Fri, 12 Oct 2018 12:16:57 -0500 Subject: Updated type of fromFilePath to use FilePath instead of String Resolves #661 --- lib/Hakyll/Core/Identifier.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3