hmake versions

  • Better handling of package libraries. Previously, the package import directories were detected at installation time, so the addition of a new package required a re-configure of hmake. Also, because all of the package dirs were searched on every invocation, hmake could not warn of a missing `package' flag. Now, package dirs are detected at runtime, and only for the requested packages - this fixes both problems.
  • Added the cmdline option `list' to hmake-config to display the set of Haskell compilers known to hmake.
  • Bugfix for the -hat option. Ensure that if a file goes through cpp before hat-trans, the resulting .hx file is moved from the temporary dir back to the build dir.
  • Bugfix, to ensure that hmake isn't confused by the escaped character \\ in a literal string.
  • Some small fixes for the cpp preprocessor config. Always give it the -traditional option, to cope with single quote marks. Also, if cpp is required before hat-trans, give it an input filename!
  • Remove the use of the Posix package under GHC. It is not available on Windows platforms, and only one feature is needed anyway, which can easily be coded directly using the FFI.
  • The -P option to hmake (which specifies a directory in which there are interface files, but no sources) should be translated automatically to -i when the compiler is either ghc or hbc.
  • Some problems with hmake-config not detecting compilers correctly on Solaris and BSD machines are now fixed.
  • An automatic invocation of a pre-processor should supply default options to it. Also fix the dependency determination to correctly use the un-pre-processed file modification time.
  • When the hmake option -hat is used, add -package hat to the generated calls to the compiler.
  • Minor configuration fix to ease building under Cygwin.
  • When detecting ghc 5.00 or later, hmake-config now uses the relevant ghc-pkg tool to discover import directories.
  • An hmake command with no specified compiler no longer fails if the location of the config file (to provide a default compiler) cannot be discovered correctly.
  • If a .hs.cpp file is discovered, use the -x c option correctly (was missing a space before).
  • The mechanism by which hmake knows about installed Haskell compilers has been completely revamped. It is now possible to have more than one compiler of the same type (e.g. ghc-4.08 and ghc-5.02) installed simultaneously.
  • A new configuration utility hmake-config is provided. This allows an individual user to have a personalised set-up telling hmake about new compilers, removing old compilers, and changing the default compiler.
  • hmake now knows about many more preprocessors for Haskell - happy, hsc2hs, c2hs, greencard. If it finds the appropriate file extension (.ly, .hsc, .chs, .gc) it now calls the preprocessor before the compiler.
  • The new -hat flag is for the Hat tracing system, if you have it installed. With this option, hmake calls the tracing transformation tool hat-trans between any preprocessor and the compiler. The resulting program generates a trace file suitable for viewing with the hat browsers.
  • Updated the configure script to understand ghc-5.02's location.
  • Incorporates other small bugfixes.
  • Note: patch-2.02-devnull must be applied to fix the unfortunate behaviour that the configure script destroys /dev/null if you run it as root.
  • Improved the error-reporting in hmake. When a module cannot be found, it now shows where the demand for the module arose, and which directories were searched.
  • Added knowledge of extended file suffixes like .p.o, .T.o, and .T.hi to hmake.
  • Fixed a bug in the generation of Makefile dependencies in the presence of a -I option.
  • Ghc's options -syslib n and -package n no longer need to be enclosed in double quotes.
  • If you build hi with ghc, the automatic configuration now detects and links in the readline library for command-line editing. (Thanks to Simon Marlow for the code changes.)
  • hi now uses unique temporary filenames so that multiple users on one machine do not conflict with each other. (Thanks to Kamo Hiroyasu for the suggestion.) Temporaries are also now tidied up afterwards.
  • Many improvements to hi, which moves out of alpha-testing to beta. We think this is worth an increment to the major version number.
  • New options: -clean and -realclean, which remove relevant .o files (or both .o and .hi files).
  • Addition of a simple line editor to hi.
  • Bugfix: the auto-configuration of hi was erratic, but should now work much more smoothly.
  • Bugfix: all the nasty possibilities of unmatched comment characters inside strings and unmatched quote chars inside comments no longer cause hmake to give up on trying to extract dependencies from a file.
  • New addition: hmake interactive, or hi for short. Looks and feels like Hugs, but uses hmake + any Haskell compiler as a backend.
  • Small bugfixes, for instance to allow #-} at the beginning of a line (previously interpreted as a cpp directive!).
  • Small configure script patch for BUILDWITH variable.
  • Small driver script patch to permit -N option again.
  • Small configuration patch for hmake built from C sources.
  • The previous patch for detecting hbc 0.9999.5 was wrong, now fixed.
  • However, you cannot build hmake with hbc 0.9999.5 (at least on linux-libc6), as that compiler has buggy libraries. A binary distribution built with ghc is available for this platform as an alternative.
  • It often makes sense to have the default compiler called by hmake to be the same as the one that built it. This is now enabled by default. You can override it by editing the COMP variable in your hmake.config file, or by setting your HC environment variable at runtime.
  • Treatment of the -idir option has been changed: it is now identical to the -Idir option, for compatibility with hbc and ghc.
  • Small patch for detecting hbc version >= 0.9999.5 correctly.
  • Small cosmetic patch to fix the -g flag (module dependency graph) whose output had multiple entries for some imports (depending on how many blank lines preceded it).
  • Import determination is no longer confused by {- -} nested comments, end-of-line comments, or line-breaks between the "import"/"qualified" keywords and module name.
  • hmake driver script now returns true exit status.
  • Configuration now automatically determines which Haskell compilers are available, where they live, and so on - no editing of files required.
  • Some minor bugfixes.
  • Symbol error in GetDep.hs when compiling with ghc, fixed.
  • Cpp-emulation now understands numeric comparisons.
  • Compiler cpp symbols (e.g. __HBC__) are not defined twice now.
  • Revert to allowing both GHCINCDIR and GHCINCPATH.
  • Allow "import A-- comment", "import A;", "import A{-comment-}".
  • Change GHCINCDIR to GHCINCPATH to allow multiple directories for prelude .hi files.
1.1 Minor bug fixes.
1.0 Initial release (separated from nhc98/nhc13).

The latest updates to this software are available on the WWW from (

Information last updated: 2002-08-06
York Functional Programming Group