summaryrefslogtreecommitdiff
path: root/src/server/PGFService.hs
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2011-03-07 21:05:29 +0000
committerkrasimir <krasimir@chalmers.se>2011-03-07 21:05:29 +0000
commit42ad2d5e95f1433d4878bb40d449efaedf841c6f (patch)
tree7c0dad4b8dc97ba9c6334e26b6b00c594f375b5a /src/server/PGFService.hs
parent62c85f1bb6a56ba7236497a4e6dcd8457d9bdcd4 (diff)
the user can now upload their own grammars in the editor
Diffstat (limited to 'src/server/PGFService.hs')
-rw-r--r--src/server/PGFService.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/PGFService.hs b/src/server/PGFService.hs
index 32e2e4e98..09714d7fa 100644
--- a/src/server/PGFService.hs
+++ b/src/server/PGFService.hs
@@ -46,7 +46,7 @@ cgiMain' cache path =
pgfMain pgf command
pgfMain :: PGF -> String -> CGI CGIResult
-pgfMain pgf command =
+pgfMain pgf command = do
case command of
"parse" -> outputJSONP =<< doParse pgf `fmap` getText `ap` getCat `ap` getFrom
"complete" -> outputJSONP =<< doComplete pgf `fmap` getText `ap` getCat `ap` getFrom `ap` getLimit