Setup.hs: fixed issue if source already existed

master
Rachel Lambda Samuelsson 2022-01-23 13:47:30 +01:00
parent 6fc30272aa
commit c25ca6c0cb
1 changed files with 1 additions and 0 deletions

View File

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