From 5fdaba6f299b87524de84ae026e96349e87df308 Mon Sep 17 00:00:00 2001 From: Hans-Peter Deifel Date: Tue, 24 Feb 2015 17:41:18 +0100 Subject: Don't add .cabal extension twice in init Previously, hakyll-init would create the cabal file with a name like name.cabal.cabal. --- src/Hakyll/Init.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3