]> git.pld-linux.org Git - packages/BNFC.git/commitdiff
- missing bits in generated code
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 28 Oct 2011 18:39:57 +0000 (18:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    BNFC-ghc72.patch -> 1.2

BNFC-ghc72.patch

index 70337f2f5c774577469960468008404833c39403..94fc1b9ec8eb0dc2146db22c2501701ccb5fd93c 100644 (file)
@@ -745,6 +745,26 @@ diff -ur BNFC-2.4.2.0/formats/haskell2/HaskellTop.hs BNFC-2.4.2.0-ghc-7.2/format
  
  -- naming conventions
  
+@@ -235,8 +235,8 @@
+               ["-- automatically generated by BNF Converter",
+                "module Main where\n",
+                "",
+-               "import IO ( stdin, hGetContents )",
+-               "import System ( getArgs, getProgName )",
++               "import System.IO ( stdin, hGetContents )",
++               "import System.Environment ( getArgs, getProgName )",
+                "",
+                "import " ++ alexFileM     opts,
+                "import " ++ happyFileM    opts,
+@@ -246,7 +246,7 @@
+                if lay then ("import " ++ layoutFileM opts) else "",
+                if use_xml then ("import " ++ xmlFileM opts) else "",
+                if_glr "import Data.FiniteMap(FiniteMap, lookupFM, fmToList)",
+-               if_glr "import Maybe(fromJust)",
++               if_glr "import Data.Maybe(fromJust)",
+                "import " ++ errFileM      opts,
+                "",
+                if use_glr
 diff -ur BNFC-2.4.2.0/formats/haskell2/RegToAlex.hs BNFC-2.4.2.0-ghc-7.2/formats/haskell2/RegToAlex.hs
 --- BNFC-2.4.2.0/formats/haskell2/RegToAlex.hs 2010-09-15 16:26:38.000000000 +0200
 +++ BNFC-2.4.2.0-ghc-7.2/formats/haskell2/RegToAlex.hs 2011-10-28 14:51:30.906655477 +0200
This page took 0.035831 seconds and 4 git commands to generate.