From 42ad2d5e95f1433d4878bb40d449efaedf841c6f Mon Sep 17 00:00:00 2001 From: krasimir Date: Mon, 7 Mar 2011 21:05:29 +0000 Subject: the user can now upload their own grammars in the editor --- src/server/PGFService.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/PGFService.hs') 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 -- cgit v1.2.3