Don't add .cabal extension twice in init

Previously, hakyll-init would create the cabal file with a name like
name.cabal.cabal.
This commit is contained in:
Hans-Peter Deifel 2015-02-24 17:41:18 +01:00
parent 3e1d74e50f
commit 5fdaba6f29

View File

@ -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"