Fix if then statement layout in Scaffolder.
Fixes the Travis build error:
```
Scaffolding/Scaffolder.hs:99:34:
Unexpected semi-colons in conditional:
if isBare; then LT.replace "cd PROJECTNAME && " ""; else LT.replace
"PROJECTNAME" (LT.pack project)
Perhaps you meant to use -XDoAndIfThenElse?
```
This commit is contained in:
parent
e7a5b48898
commit
fbc6c9fc13
@ -97,7 +97,7 @@ scaffold isBare = do
|
||||
Right backend -> runResourceT $ yield (backendBS backend) $$ sink
|
||||
|
||||
let projectnameReplacer = if isBare
|
||||
then LT.replace "cd PROJECTNAME && " ""
|
||||
else LT.replace "PROJECTNAME" (LT.pack project)
|
||||
then LT.replace "cd PROJECTNAME && " ""
|
||||
else LT.replace "PROJECTNAME" (LT.pack project)
|
||||
|
||||
TLIO.putStr $ projectnameReplacer $ renderTextUrl undefined $(textFile "input/done.cg")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user