summaryrefslogtreecommitdiff
path: root/src/Hakyll/Init.hs
diff options
context:
space:
mode:
authorHans-Peter Deifel <hpdeifel@gmx.de>2015-02-24 17:41:18 +0100
committerHans-Peter Deifel <hpdeifel@gmx.de>2015-02-24 17:41:18 +0100
commit5fdaba6f299b87524de84ae026e96349e87df308 (patch)
tree8a0738aecde190c13c6560ffa4f28786677a45f4 /src/Hakyll/Init.hs
parent3e1d74e50f9ab08cc41cc1d21a38f04be438cfc8 (diff)
downloadhakyll-5fdaba6f299b87524de84ae026e96349e87df308.tar.gz
Don't add .cabal extension twice in init
Previously, hakyll-init would create the cabal file with a name like name.cabal.cabal.
Diffstat (limited to 'src/Hakyll/Init.hs')
-rw-r--r--src/Hakyll/Init.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hakyll/Init.hs b/src/Hakyll/Init.hs
index 98b44ec..9d90f31 100644
--- a/src/Hakyll/Init.hs
+++ b/src/Hakyll/Init.hs
@@ -72,7 +72,7 @@ makeName dstDir = do
createCabal :: FilePath -> String -> IO ()
createCabal path name = do
- writeFile (path ++ ".cabal") $ unlines [
+ writeFile path $ unlines [
"name: " ++ name
, "version: 0.1.0.0"
, "build-type: Simple"