Version 18 (modified by ross, 6 years ago)

--

Hugs 98 developer wiki

This wiki is aimed at those developing Hugs.

The bug tracker

Before submitting a bug report, please check the  known bug list and current bug reports.

If you don't have an account, to submit a report you'll need to login as guest, password guest. (Sorry about that, but we've been getting ticket spam.) If you use the guest login, it would be helpful if you could sign your report in case we need more details.

References

Getting the code

There are a few possibilities, in order of increasing currency, dependencies and risk.

Major releases

If you only want to use Hugs, not modify it, your best bet is to download a recent  major release.

Source snapshots

We occasionally make available  snapshot source distributions (which include the libraries). These require fewer tools to build than the development version, and have had some testing, but may not be as stable as major releases.

Development version

To build the development version, you'll need gcc, bison, cvs, happy, darcs, various Unix tools and an Internet connection. The Hugs code is currently in CVS, though the libraries and some other tools are in darcs. If you don't already have access to the Haskell CVS repository, you can get read-only access as follows:

  1. Make sure that cvs is installed on your machine.
  2. Set your $CVSROOT environment variable to
    :pserver:anoncvs@cvs.haskell.org:/cvs
    
    If you set $CVSROOT in a shell script, be sure not to have any trailing spaces on that line, otherwise CVS will respond with a perplexing message like
    /cvs : no such repository
    
  3. Run the command
    $ cvs login
    
    The password is simply cvs. This sets up a file in your home directory called .cvspass, which squirrels away the dummy password, so you only need to do this step once.

Once you've set this up (you only have to do it once), the steps to build from CVS are:

  1. Check out hugs98.
  2. Move to hugs98 and say
    make
    
    This includes fetching the libraries from darcs, so you need to be connected.
  3. You can now run Hugs in place with
    HUGSDIR=hugsdir src/hugs
    
    To run the test suite, say
    make check
    
    To check the libraries, move into libraries and say
    make LibStatus
    
  4. When you're confident with it, you can go back to the hugs98 directory and say
    make install
    

Please report any bugs in the CVS version to the  cvs-hugs mailing list, which also carries commit messages and development discussion. You can also examine the history of the source using a  web interface.

Attachments