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:
Christopher Reichert 2014-12-14 14:44:24 -06:00
parent e7a5b48898
commit fbc6c9fc13

View File

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