Skip to content

Commit f9e20c7

Browse files
committed
Use 0.2.9
1 parent 33b20b2 commit f9e20c7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Main.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,17 @@ data Compiled = Compiled { js :: String
4141

4242
data Response = Response (Either String Compiled)
4343

44+
options :: P.Options
45+
options = P.defaultOptions { P.optionsTco = True }
46+
4447
compile :: String -> IO Response
4548
compile input | length input > 5000 = return $ Response $ Left "Please limit your input to 5000 characters"
4649
compile input = do
4750
case P.runIndentParser P.parseModules input of
4851
Left parseError -> do
4952
return $ Response $ Left $ show parseError
5053
Right modules -> do
51-
case P.compile modules of
54+
case P.compile options modules of
5255
Left error ->
5356
return $ Response $ Left error
5457
Right (js, externs, _) ->

trypurescript.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ author: Phil Freeman
1313
data-dir: ""
1414

1515
executable trypurescript
16-
build-depends: base ==4.*, scotty -any, purescript ==0.2.7, containers -any,
16+
build-depends: base ==4.*, scotty -any, purescript ==0.2.9, containers -any,
1717
mtl -any, blaze-html -any, cmdtheline -any
1818
main-is: Main.hs
1919
buildable: True

0 commit comments

Comments
 (0)