Skip to content

Commit 60fb30b

Browse files
committed
Update for 0.7.2
1 parent 364b959 commit 60fb30b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Main.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,9 @@ compile _ _ input | length input > 20000 = return $ Response $ Left "Please limi
116116
compile prelude foreigns input = do
117117
case either Left (Right . map snd) $ P.parseModulesFromFiles (const "<file>") [(undefined, input)] of
118118
Left parseError -> do
119-
return $ Response $ Left $ show parseError
120-
Right modules -> do
121-
let allModules = map (Left P.RebuildNever, ) prelude ++ map (Left P.RebuildAlways, ) modules
122-
case runTry (P.make (makeActions foreigns) allModules) of
119+
return $ Response $ Left $ P.prettyPrintMultipleErrors False parseError
120+
Right modules ->
121+
case runTry (P.make (makeActions foreigns) (prelude ++ modules)) of
123122
Left err ->
124123
return $ Response $ Left (P.prettyPrintMultipleErrors False err)
125124
Right (_, fs) ->

trypurescript.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: trypurescript
2-
version: 0.7.0
2+
version: 0.7.2.0
33
cabal-version: >=1.8
44
build-type: Simple
55
license: MIT
@@ -15,7 +15,7 @@ data-dir: ""
1515
executable trypurescript
1616
build-depends: blaze-markup >=0.5.1.5 && <0.6, aeson -any,
1717
bytestring >=0.10.0.2 && <0.11, base ==4.*, scotty -any,
18-
purescript ==0.7.1.0, containers -any, mtl -any, blaze-html -any,
18+
purescript ==0.7.2.0, containers -any, mtl -any, blaze-html -any,
1919
optparse-applicative -any, http-types >= 0.8.5, file-embed >=0.0.6,
2020
transformers ==0.4.*, mtl ==2.2.1, time -any
2121
main-is: Main.hs

0 commit comments

Comments
 (0)