hsc2hs.git
10 years agoonly emit {-# INCLUDE #-} pragmas for GHC < 6.10
Simon Marlow [Sun, 2 Aug 2009 19:03:45 +0000 (19:03 +0000)] 
only emit {-# INCLUDE #-} pragmas for GHC < 6.10

10 years agoUpdate Makefile for the new GHC build system
Ian Lynagh [Sun, 5 Jul 2009 16:50:19 +0000 (16:50 +0000)] 
Update Makefile for the new GHC build system

10 years agoRemove now-redundant "return ()"s
Ian Lynagh [Sat, 4 Jul 2009 21:19:57 +0000 (21:19 +0000)] 
Remove now-redundant "return ()"s

10 years agoSupport for -fwarn-unused-do-bind and -fwarn-wrong-do-bind, as per #3263
Max Bolingbroke [Wed, 1 Jul 2009 20:04:14 +0000 (20:04 +0000)] 
Support for -fwarn-unused-do-bind and -fwarn-wrong-do-bind, as per #3263

10 years agoFollow the gmp move in the GHC build system 2009-06-25
Ian Lynagh [Sun, 14 Jun 2009 18:32:34 +0000 (18:32 +0000)] 
Follow the gmp move in the GHC build system

10 years agoInclude hsc2hs in GHC bindists
Ian Lynagh [Sat, 13 Jun 2009 16:17:37 +0000 (16:17 +0000)] 
Include hsc2hs in GHC bindists

10 years agoQuote program paths in ghc.mk
Ian Lynagh [Sun, 31 May 2009 00:37:36 +0000 (00:37 +0000)] 
Quote program paths in ghc.mk

10 years agoUse the more portable %lu rather than %zu
Ian Lynagh [Sun, 24 May 2009 13:58:28 +0000 (13:58 +0000)] 
Use the more portable %lu rather than %zu
We now also need to cast the values to (unsigned long), as on some
platforms sizeof returns (unsigned int).

10 years agoFix warnings when template-hsc.h is used
Ian Lynagh [Sat, 23 May 2009 22:38:51 +0000 (22:38 +0000)] 
Fix warnings when template-hsc.h is used

10 years agoFix make install DESTDIR=
Duncan Coutts [Tue, 28 Apr 2009 18:12:35 +0000 (18:12 +0000)] 
Fix make install DESTDIR=
It was installing the template data file directly
to $(datadir) rather than to $(DESTDIR)$(datadir)

10 years agoonly depend on gmp/libgmp.a if $(HaveLibGmp)=="NO"
Simon Marlow [Fri, 24 Apr 2009 12:25:08 +0000 (12:25 +0000)] 
only depend on gmp/libgmp.a if $(HaveLibGmp)=="NO"

10 years agoTweak new build system
Ian Lynagh [Sat, 4 Apr 2009 20:44:02 +0000 (20:44 +0000)] 
Tweak new build system

10 years agoGHC new build system fixes
Ian Lynagh [Sun, 29 Mar 2009 15:31:30 +0000 (15:31 +0000)] 
GHC new build system fixes

10 years agoNew GHC build system: Build gmp before hsc2hs is built
Ian Lynagh [Fri, 27 Mar 2009 16:57:04 +0000 (16:57 +0000)] 
New GHC build system: Build gmp before hsc2hs is built
And thus, before it is used.

10 years agoadd a dependency to ensure libgmp.a gets built early enough
Simon Marlow [Wed, 1 Apr 2009 11:45:32 +0000 (11:45 +0000)] 
add a dependency to ensure libgmp.a gets built early enough

10 years agorestore the old-build-system Makefile
Simon Marlow [Tue, 24 Mar 2009 09:47:11 +0000 (09:47 +0000)] 
restore the old-build-system Makefile

10 years agonew GHC build system: update for new location of template-hsc.h
Simon Marlow [Mon, 23 Mar 2009 16:42:48 +0000 (16:42 +0000)] 
new GHC build system: update for new location of template-hsc.h

10 years agonew GHC build system: clean up
Simon Marlow [Mon, 23 Mar 2009 15:20:28 +0000 (15:20 +0000)] 
new GHC build system: clean up

10 years agoTweak new build system
Ian Lynagh [Sun, 22 Mar 2009 16:22:29 +0000 (16:22 +0000)] 
Tweak new build system

10 years agoNew GHC build system: build+install a copy of hsc2hs with the stage1 compiler
Ian Lynagh [Sun, 22 Mar 2009 15:44:13 +0000 (15:44 +0000)] 
New GHC build system: build+install a copy of hsc2hs with the stage1 compiler

10 years agoMake it build with nhc98 again, now using System.Posix.Internals.
Malcolm.Wallace@cs.york.ac.uk [Mon, 16 Mar 2009 13:47:26 +0000 (13:47 +0000)] 
Make it build with nhc98 again, now using System.Posix.Internals.

10 years agoAdd a -I flag with the path to HsFFI.h
Ian Lynagh [Tue, 17 Feb 2009 20:24:07 +0000 (20:24 +0000)] 
Add a -I flag with the path to HsFFI.h
This can still be overridden by adding a -I flag to the commandline,
but it means that hsc2hs will work if no flags are given.

10 years agoFix building on Windows in the new build system
Ian Lynagh [Mon, 12 Jan 2009 17:33:21 +0000 (17:33 +0000)] 
Fix building on Windows in the new build system

10 years agofor the new GHC build system
Simon Marlow [Wed, 17 Dec 2008 13:41:47 +0000 (13:41 +0000)] 
for the new GHC build system

11 years agoAdd "#!/bin/sh" to hsc2hs.wrapper 6_10_branch_has_been_forked
Ian Lynagh [Sun, 14 Sep 2008 15:34:46 +0000 (15:34 +0000)] 
Add "#!/bin/sh" to hsc2hs.wrapper

11 years agofollow library changes
Ian Lynagh [Wed, 3 Sep 2008 22:35:38 +0000 (22:35 +0000)] 
follow library changes

11 years agorevise .hc file list for new location of GetOpt
Malcolm.Wallace@cs.york.ac.uk [Tue, 2 Sep 2008 10:06:35 +0000 (10:06 +0000)] 
revise .hc file list for new location of GetOpt

11 years agoAdd base4 support
Ian Lynagh [Mon, 25 Aug 2008 12:10:16 +0000 (12:10 +0000)] 
Add base4 support

11 years agoFix warnings
Ian Lynagh [Thu, 21 Aug 2008 17:32:37 +0000 (17:32 +0000)] 
Fix warnings

11 years agohsc2hs needs Control.Exception.Base now (for nhc98 Makefile)
Malcolm.Wallace@cs.york.ac.uk [Thu, 14 Aug 2008 08:15:48 +0000 (08:15 +0000)] 
hsc2hs needs Control.Exception.Base now (for nhc98 Makefile)

11 years agoFix making bindists
Ian Lynagh [Sun, 10 Aug 2008 14:52:15 +0000 (14:52 +0000)] 
Fix making bindists

11 years agonhc98 bootstrap build via C now requires Data/Typeable.hc as well.
Malcolm.Wallace@cs.york.ac.uk [Wed, 6 Aug 2008 14:07:05 +0000 (14:07 +0000)] 
nhc98 bootstrap build via C now requires Data/Typeable.hc as well.

11 years agoFix up the Paths_hsc2hs story for nhc98.
Malcolm.Wallace@cs.york.ac.uk [Mon, 28 Jul 2008 11:12:53 +0000 (11:12 +0000)] 
Fix up the Paths_hsc2hs story for nhc98.
The difference between #if !BUILD_NHC and #ifndef BUILD_NHC is subtle but real.

11 years agouse valid Haskell'98 indentation in do-blocks
Malcolm.Wallace@cs.york.ac.uk [Sun, 27 Jul 2008 14:23:19 +0000 (14:23 +0000)] 
use valid Haskell'98 indentation in do-blocks

11 years agoRemove the dependency on Cabal
Ian Lynagh [Thu, 24 Jul 2008 17:07:58 +0000 (17:07 +0000)] 
Remove the dependency on Cabal
We now use Data.Version.showVersion rather than display

11 years agoThe default compiler is now always just "gcc"
Ian Lynagh [Wed, 23 Jul 2008 17:42:49 +0000 (17:42 +0000)] 
The default compiler is now always just "gcc"

11 years agoModernise the Cabal file
Ian Lynagh [Wed, 23 Jul 2008 14:00:38 +0000 (14:00 +0000)] 
Modernise the Cabal file

11 years agoAdd hsc2hs.wrapper from GHC's fork
Ian Lynagh [Wed, 23 Jul 2008 14:00:06 +0000 (14:00 +0000)] 
Add hsc2hs.wrapper from GHC's fork

11 years agoAdd a Makefile for GHC's build system
Ian Lynagh [Tue, 22 Jul 2008 20:39:00 +0000 (20:39 +0000)] 
Add a Makefile for GHC's build system

11 years agoSync with GHC's fork of the hsc2hs Main.hs
Ian Lynagh [Tue, 22 Jul 2008 20:37:36 +0000 (20:37 +0000)] 
Sync with GHC's fork of the hsc2hs Main.hs

11 years agoWhitespace only
Ian Lynagh [Thu, 26 Jun 2008 13:46:45 +0000 (13:46 +0000)] 
Whitespace only

11 years agoWe unconditionally import rawSystem, so it must be safe to use it
Ian Lynagh [Thu, 26 Jun 2008 13:44:44 +0000 (13:44 +0000)] 
We unconditionally import rawSystem, so it must be safe to use it
rather than falling back to system if we don't think we have it

11 years agoTweak whitespace
Ian Lynagh [Thu, 26 Jun 2008 13:38:36 +0000 (13:38 +0000)] 
Tweak whitespace

11 years agonhc98-as-cross-compiler
myself@sylvain-nahas.com [Sun, 6 Apr 2008 17:06:20 +0000 (17:06 +0000)] 
nhc98-as-cross-compiler
  This patch adds support for building nhc98 as a cross-compiler.
  It does so by differencing during the build process between local toolchain (gcc) and cross-toolchain.
  The configure script has been modified to accept a flag --target and some options becomes mandatory
  since they can not be guessed in cross-compile mode.
  The normal build is not impacted by these changes.

11 years agoghc-6.8.x requires more package flags
Malcolm.Wallace@cs.york.ac.uk [Thu, 6 Mar 2008 13:31:38 +0000 (13:31 +0000)] 
ghc-6.8.x requires more package flags

11 years agonhc98 now needs Control.Exception to build from .hc files too
Malcolm.Wallace@cs.york.ac.uk [Thu, 3 Jan 2008 15:42:59 +0000 (15:42 +0000)] 
nhc98 now needs Control.Exception to build from .hc files too

12 years agoneed -package filepath when building with nhc98
Malcolm.Wallace@cs.york.ac.uk [Wed, 4 Jul 2007 11:10:01 +0000 (11:10 +0000)] 
need -package filepath when building with nhc98

12 years agoreplace System.Directory.Internals with System.FilePath.Posix
Malcolm.Wallace@cs.york.ac.uk [Tue, 3 Jul 2007 13:14:48 +0000 (13:14 +0000)] 
replace System.Directory.Internals with System.FilePath.Posix

12 years agoadd -package directory and process to nhc98 builds
Malcolm.Wallace@cs.york.ac.uk [Fri, 25 May 2007 13:11:15 +0000 (13:11 +0000)] 
add -package directory and process to nhc98 builds

12 years agotrack movement of modules from base to new packages
Malcolm.Wallace@cs.york.ac.uk [Fri, 25 May 2007 09:43:47 +0000 (09:43 +0000)] 
track movement of modules from base to new packages

12 years agohsc2hs now depends on directory and process
Ross Paterson [Fri, 25 May 2007 08:39:25 +0000 (08:39 +0000)] 
hsc2hs now depends on directory and process

12 years agoUse version number from Cabal file
sven.panne@aedion.de [Sun, 25 Feb 2007 13:43:01 +0000 (13:43 +0000)] 
Use version number from Cabal file

Don't hardwire the version number into the Haskell code, use the one from the
Cabal file instead. Note that the nhc98 case is still not correct! The main
reason for this is that Data.Version is non-H98, which really, really sucks
and is unnecessary IMHO.

12 years agoadd more library dependencies dragged in by recent changes to System.Directory
Malcolm.Wallace@cs.york.ac.uk [Mon, 13 Nov 2006 10:58:05 +0000 (10:58 +0000)] 
add more library dependencies dragged in by recent changes to System.Directory

12 years agoneed -DBUILD_NHC for making bootstrapping .hc files as well
Malcolm.Wallace@cs.york.ac.uk [Thu, 12 Oct 2006 12:51:05 +0000 (12:51 +0000)] 
need -DBUILD_NHC for making bootstrapping .hc files as well

13 years agoalso requires System.Directory.Internals
Malcolm.Wallace@cs.york.ac.uk [Wed, 23 Aug 2006 11:01:50 +0000 (11:01 +0000)] 
also requires System.Directory.Internals

13 years agoneed to link with System.Directory and Control.Monad for nhc98 build via C
Malcolm.Wallace@cs.york.ac.uk [Tue, 22 Aug 2006 14:01:46 +0000 (14:01 +0000)] 
need to link with System.Directory and Control.Monad for nhc98 build via C

13 years agofix previous patch to rawSystemWithStdOutL
Ross Paterson [Mon, 21 Aug 2006 08:06:00 +0000 (08:06 +0000)] 
fix previous patch to rawSystemWithStdOutL

13 years agoComplain more loudly if any of the hsc2hs phases fail
Malcolm.Wallace@cs.york.ac.uk [Fri, 18 Aug 2006 14:15:58 +0000 (14:15 +0000)] 
Complain more loudly if any of the hsc2hs phases fail
(From Duncan Coutts <duncan.coutts@worc.ox.ac.uk>**20060703234356)
Previously hsc2hs just exits with a non-zero exit code, now if any of
the compilation, linking or runing phases fail then we get a message
saying so and the failing command is printed.

13 years agoworkaround for ghc-6.2.x not having System.Directory.findExecutable
Malcolm.Wallace@cs.york.ac.uk [Thu, 13 Jul 2006 11:03:13 +0000 (11:03 +0000)] 
workaround for ghc-6.2.x not having System.Directory.findExecutable

13 years agohack to avoid non-existent Paths_hsc2hs module for nhc98
Malcolm.Wallace@cs.york.ac.uk [Tue, 11 Jul 2006 16:24:56 +0000 (16:24 +0000)] 
hack to avoid non-existent Paths_hsc2hs module for nhc98

13 years agopointer to documentation
Ross Paterson [Fri, 2 Jun 2006 23:01:37 +0000 (23:01 +0000)] 
pointer to documentation

13 years agoboilerplate Setup.hs
Ross Paterson [Thu, 1 Jun 2006 16:42:47 +0000 (16:42 +0000)] 
boilerplate Setup.hs

13 years agostandalone version of hsc2hs
Ross Paterson [Thu, 1 Jun 2006 16:37:28 +0000 (16:37 +0000)] 
standalone version of hsc2hs
Set up hsc2hs to build using Cabal.

Also simplified #'ifdef's, sacrificing compatibility with versions prior
to GHC 5.04, nhc 1.17 and Hugs Mar 2005.

13 years agowhitespace only
Ross Paterson [Thu, 1 Jun 2006 16:07:08 +0000 (16:07 +0000)] 
whitespace only

13 years agoMake hsc2hs emit the full path name in {-# LINE #-} pagmas Fork_of_hsc2hs_for_independent_use
Duncan Coutts [Sun, 22 Jan 2006 01:18:31 +0000 (01:18 +0000)] 
Make hsc2hs emit the full path name in {-# LINE #-} pagmas
For one thing this is the right thing to do anyway, it's what other tools do.
Secondly it allows haddock to produce accurate source code links.

14 years ago#ifdef cleanups
panne [Sat, 21 May 2005 15:07:26 +0000 (15:07 +0000)] 
#ifdef cleanups
While acting as warning police, I tried to clean up the #ifdef chaos a
little bit, I hope nothing has been broken due to that... :-]

14 years agoFix and hopefully rationalise the #ifdefs for rawSystem/system/runProcess
simonmar [Wed, 18 May 2005 09:43:50 +0000 (09:43 +0000)] 
Fix and hopefully rationalise the #ifdefs for rawSystem/system/runProcess

14 years agouse runProcess instead of system if appropriate
krasimir [Tue, 17 May 2005 09:48:27 +0000 (09:48 +0000)] 
use runProcess instead of system if appropriate
Use runProcess instead of system if the former is available and we would like
to redirect stdout of the new process. system is unsafe if you have spaces
in the file path or you have / instead of \ on Windows.

14 years agoDefine __CYGWIN32__ for nhc98 build of hsc2hs
malcolm [Thu, 10 Mar 2005 17:58:43 +0000 (17:58 +0000)] 
Define __CYGWIN32__ for nhc98 build of hsc2hs

14 years agoOops, misspelled OPTIONS_GHC
ross [Sat, 29 Jan 2005 12:15:33 +0000 (12:15 +0000)] 
Oops, misspelled OPTIONS_GHC

14 years agoreplacements for OPTIONS
ross [Fri, 28 Jan 2005 16:28:56 +0000 (16:28 +0000)] 
replacements for OPTIONS
from 6.3, generate INCLUDE instead of OPTIONS -#include and GHC_OPTIONS
instead of OPTIONS.

14 years agoRationalise the BUILD,HOST,TARGET defines
simonmar [Fri, 28 Jan 2005 12:56:27 +0000 (12:56 +0000)] 
Rationalise the BUILD,HOST,TARGET defines
Recall that:

  - build is the platform we're building on
  - host is the platform we're running on
  - target is the platform we're generating code for

The change is that now we take these definitions as applying from the
point of view of the particular source code being built, rather than
the point of view of the whole build tree.

For example, in RTS and library code, we were previously testing the
TARGET platform.  But under the new rule, the platform on which this
code is going to run is the HOST platform.  TARGET only makes sense in
the compiler sources.

In practical terms, this means that the values of BUILD, HOST & TARGET
may vary depending on which part of the build tree we are in.

Actual changes:

 - new file: includes/ghcplatform.h contains platform defines for
   the RTS and library code.

 - new file: includes/ghcautoconf.h contains the autoconf settings
   only (HAVE_BLAH).  This is so that we can get hold of these
   settings independently of the platform defines when necessary
   (eg. in GHC).

 - ghcconfig.h now #includes both ghcplatform.h and ghcautoconf.h.

 - MachRegs.h, which is included into both the compiler and the RTS,
   now has to cope with the fact that it might need to test either
   _TARGET_ or _HOST_ depending on the context.

 - the compiler's Makefile now generates
     stage{1,2,3}/ghc_boot_platform.h
   which contains platform defines for the compiler.  These differ
   depending on the stage, of course: in stage2, the HOST is the
   TARGET of stage1.  This was wrong before.

 - The compiler doesn't get platform info from Config.hs any more.
   Previously it did (sometimes), but unless we want to generate
   a new Config.hs for each stage we can't do this.

 - GHC now helpfully defines *_{BUILD,HOST}_{OS,ARCH} automatically
   in CPP'd Haskell source.

 - ghcplatform.h defines *_TARGET_* for backwards compatibility
   (ghcplatform.h is included by ghcconfig.h, which is included by
   config.h, so code which still #includes config.h will get the TARGET
   settings as before).

 - The Users's Guide is updated to mention *_HOST_* rather than
   *_TARGET_*.

 - coding-style.html in the commentary now contains a section on
   platform defines.  There are further doc updates to come.

Thanks to Wolfgang Thaller for pointing me in the right direction.

14 years agomore standard treatment of -D
ross [Thu, 27 Jan 2005 12:38:49 +0000 (12:38 +0000)] 
more standard treatment of -D
turn -Dfoo into
#define foo 1
(like C compilers do) instead of
#define foo

14 years agomake hsc2hs work with Hugs
ross [Mon, 24 Jan 2005 00:36:03 +0000 (00:36 +0000)] 
make hsc2hs work with Hugs

14 years agoRemove dead branch of #elif
malcolm [Thu, 6 Jan 2005 14:55:02 +0000 (14:55 +0000)] 
Remove dead branch of #elif

14 years agofind the best rawSystem
malcolm [Thu, 6 Jan 2005 14:54:17 +0000 (14:54 +0000)] 
find the best rawSystem
When built as a ghc utility, Compat.RawSystem is always available.
When built as an nhc98 utility, -DBUILD_NHC symbol allows for getting
the best otherwise-available version of rawSystem.

14 years agoAdd System.Cmd to c-files dependencies
malcolm [Thu, 6 Jan 2005 11:55:12 +0000 (11:55 +0000)] 
Add System.Cmd to c-files dependencies

14 years agotweaks to finding rawSystem
malcolm [Thu, 6 Jan 2005 10:44:14 +0000 (10:44 +0000)] 
tweaks to finding rawSystem
It seems that ghc-6.2.x doesn't have Compat.RawSystem, so should use
System.Cmd instead.  And ghc-5.04.x doesn't export rawSystem from
there either, so should use the simple inline definition.

14 years agorecent non-GHCs can use System.Cmd.rawSystem
ross [Wed, 5 Jan 2005 15:06:25 +0000 (15:06 +0000)] 
recent non-GHCs can use System.Cmd.rawSystem

14 years ago`rawSystem` is only available in GHC
malcolm [Wed, 5 Jan 2005 11:17:46 +0000 (11:17 +0000)] 
`rawSystem` is only available in GHC

14 years agoUse rawSystem where appropriate
simonmar [Wed, 5 Jan 2005 10:26:46 +0000 (10:26 +0000)] 
Use rawSystem where appropriate

15 years agoMerge backend-hacking-branch onto HEAD. Yay!
simonmar [Fri, 13 Aug 2004 13:11:23 +0000 (13:11 +0000)] 
Merge backend-hacking-branch onto HEAD.  Yay!

15 years agoAvoid string gaps in CPP'd source
simonmar [Thu, 12 Aug 2004 12:12:55 +0000 (12:12 +0000)] 
Avoid string gaps in CPP'd source

15 years agoWorkaround for hbc
panne [Tue, 29 Jun 2004 17:14:01 +0000 (17:14 +0000)] 
Workaround for hbc
It compiles matching against 0-ary constructors in list comprehensions
into wrong code, e.g.

   [ () | True <- [False] ]

results in something like

   Error: No match in I4680Pinteractive

when issued in hbi.

15 years agoSmall syntactic changes to please hbc's interpretation of the layout rule and records
panne [Sun, 27 Jun 2004 20:41:07 +0000 (20:41 +0000)] 
Small syntactic changes to please hbc's interpretation of the layout rule and records

15 years agoMove Makefiles for nhc98's build here, prior to grafting the directory
malcolm [Fri, 11 Jun 2004 11:10:57 +0000 (11:10 +0000)] 
Move Makefiles for nhc98's build here, prior to grafting the directory

15 years agoComments only
simonpj [Wed, 3 Mar 2004 17:11:51 +0000 (17:11 +0000)] 
Comments only

15 years agohack for .exe extension
panne [Sun, 15 Feb 2004 12:20:27 +0000 (12:20 +0000)] 
hack for .exe extension
I'm giving up here: The various quoting-related changes in rawSystem &
friends make it impossible to pass $(exeext) with double quotes via
cpp to Main.hs in a backwards-compatible way, so we revert to a cruel
hack here.  >:-(  Improvements are highly welcome...

15 years agoonly uses FFI, not glasgow-exts, and updated ffi syntax
ross [Mon, 9 Feb 2004 17:23:20 +0000 (17:23 +0000)] 
only uses FFI, not glasgow-exts, and updated ffi syntax

15 years agoSome hints about compiling hsc2hs with nhc98
malcolm [Mon, 9 Feb 2004 15:04:20 +0000 (15:04 +0000)] 
Some hints about compiling hsc2hs with nhc98

15 years agoSimplifications + small steps towards a stand-alone hsc2hs
panne [Sat, 7 Feb 2004 16:37:07 +0000 (16:37 +0000)] 
Simplifications + small steps towards a stand-alone hsc2hs
 * Replaced Config module by a simple CPP macro
 * Don't #include configuration header
 * Bumped version number
 * Warning police

15 years agooutCLine: Use "#line n <filename>", not "# n <filename>"
sof [Wed, 1 Oct 2003 16:45:10 +0000 (16:45 +0000)] 
outCLine: Use "#line n <filename>", not "# n <filename>"
The latter isn't ISO (and causes breakage when compiling output with MSVC.)

16 years agoadd -? and -V options
panne [Wed, 27 Aug 2003 14:11:17 +0000 (14:11 +0000)] 
add -? and -V options
* Added short option -? for --help and -V for --version.
* Small cleanup

16 years agoadd arguments to main()
stolz [Tue, 20 May 2003 11:07:54 +0000 (11:07 +0000)] 
add arguments to main()
Generate
  int main (int argc, char *argv [])
instead of
  int main (void)

Suggested by: Nicolas Oury

16 years agoMake -t option to the script override the template file
ross [Thu, 1 May 2003 10:46:19 +0000 (10:46 +0000)] 
Make -t option to the script override the template file
(just as -c overrides the compiler) as the documentation implies.
(Formerly -t added an extra template file, which is not so useful.)

16 years agoUse old-style foreign import for bkwd compatibility
simonpj [Fri, 21 Feb 2003 13:35:18 +0000 (13:35 +0000)] 
Use old-style foreign import for bkwd compatibility

16 years agoTighten up prev commit
sof [Tue, 11 Feb 2003 04:32:06 +0000 (04:32 +0000)] 
Tighten up prev commit
- win32: only add default --template=... option if the template file
  exists.
- if user has supplied --cc=.., use it as a default for 'ld'.

16 years agohelp the program find things at runtime
sof [Fri, 7 Feb 2003 21:55:36 +0000 (21:55 +0000)] 
help the program find things at runtime
- default linker is now 'ghc' (i.e., consistent with the default compiler.)
- new option, -v/--verbose, which makes the tool less inscrutable about what
  external commands it actually ends up exec'ing.
- under Win32, try locating the default 'ghc' to run by looking in the dir
  where 'hsc2hs' resides (which they do in a binary install.)
- make the default --template arg story actually work (win32 only.)

16 years agoMake imports work for pre-504
simonpj [Tue, 29 Oct 2002 10:50:54 +0000 (10:50 +0000)] 
Make imports work for pre-504

16 years agoUse getExecDir, just like in ghc-pkg and SysTools
simonpj [Mon, 28 Oct 2002 10:11:17 +0000 (10:11 +0000)] 
Use getExecDir, just like in ghc-pkg and SysTools