pas2c: Tentatively fix the build
authorkoda
Mon, 16 Nov 2015 15:21:20 +0100
changeset 11398 c3a535886806
parent 11397 a7efecf4f49f
child 11399 ed6bb8c066b3
pas2c: Tentatively fix the build
tools/pas2c/Pas2C.hs
tools/pas2c/PascalParser.hs
--- a/tools/pas2c/Pas2C.hs	Mon Nov 16 15:20:49 2015 +0100
+++ b/tools/pas2c/Pas2C.hs	Mon Nov 16 15:21:20 2015 +0100
@@ -1,4 +1,5 @@
 {-# LANGUAGE ScopedTypeVariables #-}
+{-# LANGUAGE FlexibleContexts #-}
 module Pas2C where
 
 import Text.PrettyPrint.HughesPJ
--- a/tools/pas2c/PascalParser.hs	Mon Nov 16 15:20:49 2015 +0100
+++ b/tools/pas2c/PascalParser.hs	Mon Nov 16 15:21:20 2015 +0100
@@ -239,10 +239,10 @@
     ] <?> "range declaration"
     where
     rangeft = do
-    e1 <- initExpression
-    string' ".."
-    e2 <- initExpression
-    return $ RangeFromTo e1 e2
+        e1 <- initExpression
+        string' ".."
+        e2 <- initExpression
+        return $ RangeFromTo e1 e2
 
 typeVarDeclaration :: Bool -> Parsec String u [TypeVarDeclaration]
 typeVarDeclaration isImpl = (liftM concat . many . choice) [