From: malcolm Date: Mon, 9 Feb 2004 15:04:20 +0000 (+0000) Subject: [project @ 2004-02-09 15:04:19 by malcolm] X-Git-Tag: Approx_11550_changesets_converted~98 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=133fd6eb39b89df17faf5baf302f92655d7c0779;hp=5cb4bb13a817c44cdc4369c7f82949d9490d69a0 [project @ 2004-02-09 15:04:19 by malcolm] Some hints about compiling hsc2hs with nhc98. --- diff --git a/ghc/utils/hsc2hs/Main.hs b/ghc/utils/hsc2hs/Main.hs index ae40cf4..9c5e9eb 100644 --- a/ghc/utils/hsc2hs/Main.hs +++ b/ghc/utils/hsc2hs/Main.hs @@ -1,7 +1,7 @@ {-# OPTIONS -fglasgow-exts #-} ------------------------------------------------------------------------ --- $Id: Main.hs,v 1.50 2004/02/07 16:37:06 panne Exp $ +-- $Id: Main.hs,v 1.51 2004/02/09 15:04:19 malcolm Exp $ -- -- Program for converting .hsc files to .hs files, by converting the -- file into a C program which is run to generate the Haskell source. @@ -11,7 +11,7 @@ -- -- See the documentation in the Users' Guide for more details. -#if __GLASGOW_HASKELL__ >= 504 +#if __GLASGOW_HASKELL__ >= 504 || __NHC__ >= 114 import System.Console.GetOpt #else import GetOpt @@ -26,7 +26,7 @@ import IO (hPutStr, hPutStrLn, stderr) #if defined(mingw32_HOST_OS) import Foreign -#if __GLASGOW_HASKELL__ >= 504 +#if __GLASGOW_HASKELL__ >= 504 || __NHC__ >= 114 import Foreign.C.String #else import CString diff --git a/ghc/utils/hsc2hs/Makefile b/ghc/utils/hsc2hs/Makefile index 94ed548..aaf71b4 100644 --- a/ghc/utils/hsc2hs/Makefile +++ b/ghc/utils/hsc2hs/Makefile @@ -1,4 +1,6 @@ # ----------------------------------------------------------------------------- +# To compile with nhc98 on unix: +# nhc98 -cpp -DEXEEXT="\"\"" -package base -o hsc2hs-bin Main.hs TOP=../.. include $(TOP)/mk/boilerplate.mk