Setup.hs: fixed issue if source already existed
This commit is contained in:
parent
6fc30272aa
commit
c25ca6c0cb
1
Setup.hs
1
Setup.hs
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user