Fix build with ghc-7.4.

This commit is contained in:
kili 2012-09-02 21:54:08 +00:00
parent a225c5c3ec
commit 64730fef40
6 changed files with 60 additions and 3 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.3 2011/12/27 21:16:03 kili Exp $
# $OpenBSD: Makefile,v 1.4 2012/09/02 21:54:08 kili Exp $
COMMENT= C compiler for GMC-4
DISTNAME= gmc4cc-0.6.2
CATEGORIES= devel lang
REVISION= 1
REVISION= 2
# Japanese, use this for the English version: http://goo.gl/LPtgg
HOMEPAGE= http://terus.jp/engineering/gmc4cc/
@ -26,7 +26,7 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
MODULES= converters/libiconv
WANTLIB += c gmp m pthread util
WANTLIB += c gmp m
BUILD_DEPENDS= lang/ghc
LIB_DEPENDS= devel/gmp

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-Assembler_hs,v 1.1 2012/09/02 21:54:08 kili Exp $
--- Assembler.hs.orig Thu Jul 23 09:52:53 2009
+++ Assembler.hs Fri Jul 13 14:27:41 2012
@@ -1,6 +1,6 @@
module Assembler where
-import Char
+import Data.Char
import Lexer
import Instruction

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-AssemblyParser_hs,v 1.1 2012/09/02 21:54:08 kili Exp $
--- AssemblyParser.hs.orig Thu Jul 23 07:47:44 2009
+++ AssemblyParser.hs Fri Jul 13 14:27:24 2012
@@ -1,7 +1,7 @@
module AssemblyParser where
-import Char
-import List
+import Data.Char
+import Data.List
import Lexer
import Instruction

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-Emitter_hs,v 1.1 2012/09/02 21:54:08 kili Exp $
--- Emitter.hs.orig Thu Jul 23 17:38:50 2009
+++ Emitter.hs Fri Jul 13 14:27:57 2012
@@ -1,6 +1,6 @@
module Emitter where
-import List
+import Data.List
import Lexer
import Parser

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-Lexer_hs,v 1.1 2012/09/02 21:54:08 kili Exp $
--- Lexer.hs.orig Thu Jul 23 09:03:44 2009
+++ Lexer.hs Fri Jul 13 14:26:49 2012
@@ -1,7 +1,7 @@
module Lexer where
-import Char
-import List
+import Data.Char
+import Data.List
data Token =
TokenIdentifier String |

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-Main_hs,v 1.1 2012/09/02 21:54:08 kili Exp $
--- Main.hs.orig Sun Jul 19 12:41:15 2009
+++ Main.hs Fri Jul 13 14:28:12 2012
@@ -1,4 +1,4 @@
-import System
+import System.Environment
import Lexer
import Parser