Setup.hs: fixed issue if source already existed

This commit is contained in:
Rachel Lambda Samuelsson 2022-01-23 13:47:30 +01:00
parent 6fc30272aa
commit c25ca6c0cb

View File

@ -12,6 +12,7 @@ main = do
if a == "build" if a == "build"
then do then do
callProcess "bnfc" ["-d", "--text-token", "--functor", "hm.cf"] callProcess "bnfc" ["-d", "--text-token", "--functor", "hm.cf"]
removePathForcibly (libdir <> "/Hm")
renameDirectory "Hm" (libdir <> "/Hm") renameDirectory "Hm" (libdir <> "/Hm")
else pure () else pure ()
defaultMain defaultMain