packages/random.git
7 years agoReactivated big Integer tests that were deactivated on the master branch. new_api
Ryan Newton [Wed, 29 Jun 2011 17:28:46 +0000 (13:28 -0400)] 
Reactivated big Integer tests that were deactivated on the master branch.

7 years agoMerge branch 'master' into new_api
Ryan Newton [Tue, 28 Jun 2011 18:57:19 +0000 (14:57 -0400)] 
Merge branch 'master' into new_api

7 years agoAdding the simple speed test from ticket #427.
Ryan Newton [Tue, 28 Jun 2011 18:25:45 +0000 (14:25 -0400)] 
Adding the simple speed test from ticket #427.

7 years agoAdded currently unworking test from ticket 4218.
Ryan Newton [Tue, 28 Jun 2011 17:44:56 +0000 (13:44 -0400)] 
Added currently unworking test from ticket 4218.

7 years agoThe tests are failing with stack overflow on large random Integers (2^5000). This...
Ryan Newton [Tue, 28 Jun 2011 14:43:22 +0000 (10:43 -0400)] 
The tests are failing with stack overflow on large random Integers (2^5000).  This represents a genuine problem, but for now I'm commenting out the relevant tests to get things passing.  This problem and several others are fixed on the new_api branch.

7 years agoFix trac #5280 #5278. Actually this has been a gradual fix over many revs.
Ryan Newton [Tue, 28 Jun 2011 14:37:28 +0000 (10:37 -0400)] 
Fix trac #5280 #5278.  Actually this has been a gradual fix over many revs.
But in this revision I make a stronger assumption about genBits and do away with unimplemented cases.
So this is the first candidate full replacement for the master branch with the old (incorrect)
function definitions completely removed and replaced.

7 years agoRemoved ifdefd debugging trace messages.
Ryan Newton [Tue, 28 Jun 2011 14:36:48 +0000 (10:36 -0400)] 
Removed ifdefd debugging trace messages.

7 years agomerge
Ryan Newton [Tue, 28 Jun 2011 14:11:18 +0000 (10:11 -0400)] 
merge

7 years agoAdded tests and benchmarks for BIG Integers.
Ryan Newton [Tue, 28 Jun 2011 14:07:45 +0000 (10:07 -0400)] 
Added tests and benchmarks for BIG Integers.

7 years agoConverted Integer generation over to randomBits approach and deleted randomIvalInteger.
Ryan Newton [Tue, 28 Jun 2011 14:02:14 +0000 (10:02 -0400)] 
Converted Integer generation over to randomBits approach and deleted randomIvalInteger.

7 years agoConsolidating. Moving last types over to randomBits based. Only Integer is left.
Ryan Newton [Tue, 28 Jun 2011 05:33:00 +0000 (01:33 -0400)] 
Consolidating.  Moving last types over to randomBits based.  Only Integer is left.

7 years agoMerge branch 'master' into new_api
Ryan Newton [Tue, 28 Jun 2011 05:10:47 +0000 (01:10 -0400)] 
Merge branch 'master' into new_api

7 years agoAdded README.md for github.
Ryan Newton [Tue, 28 Jun 2011 05:10:31 +0000 (01:10 -0400)] 
Added README.md for github.

7 years agoMerge branch 'master' into new_api
Ryan Newton [Tue, 28 Jun 2011 05:06:31 +0000 (01:06 -0400)] 
Merge branch 'master' into new_api

7 years agoExtended rangeTest to handle some more corner cases.
Ryan Newton [Tue, 28 Jun 2011 05:06:21 +0000 (01:06 -0400)] 
Extended rangeTest to handle some more corner cases.

7 years agoConverted the rest of the numeric types to use randomBits. Fixed randomIvalBits...
Ryan Newton [Tue, 28 Jun 2011 05:04:00 +0000 (01:04 -0400)] 
Converted the rest of the numeric types to use randomBits.  Fixed randomIvalBits so that it can handle large ranges within a signed type.

7 years agoMerge branch 'master' into new_api
Ryan Newton [Tue, 28 Jun 2011 04:11:48 +0000 (00:11 -0400)] 
Merge branch 'master' into new_api

7 years agoUpdated rangeTest to test randomR as well as random.
Ryan Newton [Tue, 28 Jun 2011 04:11:41 +0000 (00:11 -0400)] 
Updated rangeTest to test randomR as well as random.

7 years agoAdded a new test to check the range on each type\'s Random instance.
Ryan Newton [Tue, 28 Jun 2011 03:41:20 +0000 (23:41 -0400)] 
Added a new test to check the range on each type\'s Random instance.

7 years agominor: DEVLOG notes
Ryan Newton [Mon, 27 Jun 2011 18:48:17 +0000 (14:48 -0400)] 
minor: DEVLOG notes

7 years agoMinor: comment tweak, DEVLOG notes, remved cruft.
Ryan Newton [Mon, 27 Jun 2011 17:47:54 +0000 (13:47 -0400)] 
Minor: comment tweak, DEVLOG notes, remved cruft.

7 years agoMerged patch from master.
Ryan Newton [Mon, 27 Jun 2011 17:41:10 +0000 (13:41 -0400)] 
Merged patch from master.

7 years agoConverted Float/Double randomR methods to simply use the existing random methods...
Ryan Newton [Mon, 27 Jun 2011 17:38:38 +0000 (13:38 -0400)] 
Converted Float/Double randomR methods to simply use the existing random methods to generate a coefficient.

7 years agoIntermediate checkin. Fixes for randomIvalBits. Still a couple corner cases to...
Ryan Newton [Mon, 27 Jun 2011 17:26:57 +0000 (13:26 -0400)] 
Intermediate checkin.  Fixes for randomIvalBits.  Still a couple corner cases to handle before its even a full candidate, however.

7 years agoIntermediate checkin. Fixed one bug with the order of type conversion/shifting....
Ryan Newton [Mon, 27 Jun 2011 17:05:25 +0000 (13:05 -0400)] 
Intermediate checkin.  Fixed one bug with the order of type conversion/shifting.  Right now trying to fix randomIvalBits behavior on (signed) Ints.

7 years agoIntermediate checkin. First draft of randomIvalBits replacement for randomIvalIntegr...
Ryan Newton [Mon, 27 Jun 2011 15:59:49 +0000 (11:59 -0400)] 
Intermediate checkin.  First draft of randomIvalBits replacement for randomIvalIntegral.  It's unfinished but shows promise.

7 years agoAdded randomBits based on genBits. This yields a performance improvement across...
Ryan Newton [Mon, 27 Jun 2011 05:36:42 +0000 (01:36 -0400)] 
Added randomBits based on genBits.  This yields a performance improvement across most Random types.

7 years agoMinor: using unsafeDupablePerformIO to be more fair to MWC.
Ryan Newton [Mon, 27 Jun 2011 03:51:11 +0000 (23:51 -0400)] 
Minor: using unsafeDupablePerformIO to be more fair to MWC.

7 years agoRearranged module organization for Benchmark. Added Makefile and more comparison...
Ryan Newton [Mon, 27 Jun 2011 03:47:13 +0000 (23:47 -0400)] 
Rearranged module organization for Benchmark.  Added Makefile and more comparison against other RNGs on hackage.

7 years agoBumped the version number to 1.0.0.4 because of the previous.
Ryan Newton [Mon, 27 Jun 2011 03:02:49 +0000 (23:02 -0400)] 
Bumped the version number to 1.0.0.4 because of the previous.

7 years agoMinor: Added a bit of testing related code corresponding to ticket 5278.
Ryan Newton [Mon, 27 Jun 2011 02:52:08 +0000 (22:52 -0400)] 
Minor: Added a bit of testing related code corresponding to ticket 5278.

7 years agoExtended the float fix to Doubles. Fixed a bug introduced by the last checkin. ...
Ryan Newton [Sun, 26 Jun 2011 06:18:52 +0000 (02:18 -0400)] 
Extended the float fix to Doubles.  Fixed a bug introduced by the last checkin.  next is not a sufficient substitute for randomBounded in the Int instance.  It doesn't have sufficient genRange.

7 years agoFixed performance dent for random generating Ints. I can't explain why it was slower...
Ryan Newton [Sun, 26 Jun 2011 04:24:46 +0000 (00:24 -0400)] 
Fixed performance dent for random generating Ints.  I can't explain why it was slower than other types using randomBounded, but this patch circumvents the problem by using next directly.

7 years agoTweaked SimpleRNGBench to be warning-free as well and added some additional tests...
Ryan Newton [Sun, 26 Jun 2011 04:08:40 +0000 (00:08 -0400)] 
Tweaked SimpleRNGBench to be warning-free as well and added some additional tests of randomR alongside random.

7 years agoTweaked BinSearch to issue no warnings.
Ryan Newton [Sun, 26 Jun 2011 03:59:51 +0000 (23:59 -0400)] 
Tweaked BinSearch to issue no warnings.

7 years agoSmall tweaks to fix Integer-defaulting warnings.
Ryan Newton [Sun, 26 Jun 2011 03:54:36 +0000 (23:54 -0400)] 
Small tweaks to fix Integer-defaulting warnings.

7 years agoAdding a DEVLOG file to keep track of development.
Ryan Newton [Sat, 25 Jun 2011 02:44:54 +0000 (22:44 -0400)] 
Adding a DEVLOG file to keep track of development.

7 years agoFix #5133 - also yields this change a 240X speedup in generating random floats in...
Ryan Newton [Sat, 25 Jun 2011 02:39:44 +0000 (22:39 -0400)] 
Fix #5133 - also yields this change a 240X speedup in generating random floats in my tests.

7 years agoCleaned up the simple benchmark and added tests for non-Int datatypes. The results...
Ryan Newton [Fri, 24 Jun 2011 22:22:26 +0000 (18:22 -0400)] 
Cleaned up the simple benchmark and added tests for non-Int datatypes.  The results are a bit surprising.  Float generation is performing badly.

Here are some results from a 3.33ghz Intel Nehalem:

  Cost of rdtsc (ffi call):    75
  Approx getCPUTime calls per second: 206,493
  Approx clock frequency:  3,336,174,789
  First, timing with System.Random interface:
    112,276,629 randoms generated [constant zero gen]         ~ 29.71 cycles/int
     14,289,712 randoms generated [System.Random stdGen]      ~ 233 cycles/int
         82,546 randoms generated [System.Random Floats]      ~ 40,416 cycles/int
         83,138 randoms generated [System.Random CFloats]     ~ 40,128 cycles/int
      2,533,007 randoms generated [System.Random Doubles]     ~ 1,317 cycles/int
        841,737 randoms generated [System.Random Integers]    ~ 3,963 cycles/int
      4,704,318 randoms generated [System.Random Bools]       ~ 709 cycles/int

7 years agoAdded some very minor comments and a simple benchmarking script.
Ryan Newton [Fri, 24 Jun 2011 18:26:22 +0000 (14:26 -0400)] 
Added some very minor comments and a simple benchmarking script.

Using this script I saw a 13X regression in stdGen in recent revisions
vs the 1.0.0.3 version, dropping to only 900K random ints/sec on my
machine.  However, it was some kind of heisenbug because now it's gone
away for unknown reasons.  Watch out for it in the future though.

7 years agominor: Updated maintainer email.
Ryan Newton [Fri, 24 Jun 2011 02:18:13 +0000 (22:18 -0400)] 
minor: Updated maintainer email.

8 years agoUpdate source repo location to be the git repo in .cabal file ghc-7.2
Ian Lynagh [Fri, 8 Apr 2011 10:23:07 +0000 (11:23 +0100)] 
Update source repo location to be the git repo in .cabal file

8 years agoAdd a comment about why we can't use abs to get a non-negative number ghc-darcs-git-switchover
Ian Lynagh [Wed, 9 Mar 2011 17:43:45 +0000 (17:43 +0000)] 
Add a comment about why we can't use abs to get a non-negative number
NB: Negative seends will now produce different random numbers than
they used to.

8 years agomkStdGen32: Avoid infinite recursion when applied to minBound
Johan Kiviniemi [Fri, 21 Jan 2011 07:02:58 +0000 (07:02 +0000)] 
mkStdGen32: Avoid infinite recursion when applied to minBound

"mkStdGen32 s" would call itself with "negate s" if "s" is negative. Alas,
(minBound :: Int32) == negate minBound. "mkStdGen32 minBound" would thus
recurse infinitely.

Compute "sMaybeNegative .&. maxBound" instead. That clears the most significant
bit in signed types.

8 years agoAvoid instancing a type synonym in nhc98.
malcolm.wallace@me.com [Tue, 26 Oct 2010 06:53:11 +0000 (06:53 +0000)] 
Avoid instancing a type synonym in nhc98.

8 years agoAdded Random instances for Int*, Word* and almost all types from Foreign.C.Types
Bas van Dijk [Fri, 8 Oct 2010 13:52:39 +0000 (13:52 +0000)] 
Added Random instances for Int*, Word* and almost all types from Foreign.C.Types

8 years agoMove "split" into its own class
thomas.dubuisson@gmail.com [Tue, 14 Sep 2010 23:29:45 +0000 (23:29 +0000)] 
Move "split" into its own class

8 years agoImprove Read docs; spotted on the mailing lists
Ian Lynagh [Wed, 13 Oct 2010 18:12:57 +0000 (18:12 +0000)] 
Improve Read docs; spotted on the mailing lists

8 years agoBump version number 1.0.0.2 -> 1.0.0.3
Ian Lynagh [Thu, 16 Sep 2010 16:16:05 +0000 (16:16 +0000)] 
Bump version number 1.0.0.2 -> 1.0.0.3

9 years agoFix randomIvalDouble so that it will not produce values more than a few ULPs below...
James Cook [Mon, 12 Apr 2010 13:26:38 +0000 (13:26 +0000)] 
Fix randomIvalDouble so that it will not produce values more than a few ULPs below the requested lower bound

9 years agoBump version to 1.0.0.2
Ian Lynagh [Sun, 20 Sep 2009 14:19:53 +0000 (14:19 +0000)] 
Bump version to 1.0.0.2

9 years agouse explicit import list for Data.Sequence, in preparation for an expanded interface
Ross Paterson [Sun, 13 Sep 2009 23:09:10 +0000 (23:09 +0000)] 
use explicit import list for Data.Sequence, in preparation for an expanded interface

9 years agoFix "Cabal check" warnings
Ian Lynagh [Tue, 11 Aug 2009 21:59:20 +0000 (21:59 +0000)] 
Fix "Cabal check" warnings

9 years agochange dependency from old-time to time
Laszlo Nagy [Thu, 9 Jul 2009 09:14:17 +0000 (09:14 +0000)] 
change dependency from old-time to time

9 years agoAdd type signatures to avoid type class defaults 2009-06-25
simonpj@microsoft.com [Fri, 29 May 2009 08:39:58 +0000 (08:39 +0000)] 
Add type signatures to avoid type class defaults

10 years agoRequire Cabal version >= 1.6
Ian Lynagh [Thu, 22 Jan 2009 01:13:25 +0000 (01:13 +0000)] 
Require Cabal version >= 1.6

10 years agoAdd "bug-reports" and "source-repository" info to the Cabal file
Ian Lynagh [Wed, 21 Jan 2009 18:27:45 +0000 (18:27 +0000)] 
Add "bug-reports" and "source-repository" info to the Cabal file
Also switched to the modern Cabal file format

10 years agorandom1283 is now fixed
Ian Lynagh [Tue, 9 Dec 2008 11:57:32 +0000 (11:57 +0000)] 
random1283 is now fixed

10 years agoMark random1283 broken (#2844)
Ian Lynagh [Sat, 6 Dec 2008 00:29:58 +0000 (00:29 +0000)] 
Mark random1283 broken (#2844)

10 years agoBump version number to 1.0.0.1
Ian Lynagh [Sat, 20 Sep 2008 16:02:15 +0000 (16:02 +0000)] 
Bump version number to 1.0.0.1

10 years agoadd category field 6_10_branch_has_been_forked
Ross Paterson [Sun, 24 Aug 2008 00:30:14 +0000 (00:30 +0000)] 
add category field

10 years agoMake random warning-free
Ian Lynagh [Thu, 19 Jun 2008 14:01:57 +0000 (14:01 +0000)] 
Make random warning-free

11 years agofix nhc98 build: recent change to use picoseconds was not portable 2008-05-28
Malcolm.Wallace@cs.york.ac.uk [Wed, 31 Oct 2007 14:01:23 +0000 (14:01 +0000)] 
fix nhc98 build: recent change to use picoseconds was not portable

11 years agoFIX #1272: include the picoseconds field of ClockTime in the seed
Simon Marlow [Fri, 26 Oct 2007 15:40:58 +0000 (15:40 +0000)] 
FIX #1272: include the picoseconds field of ClockTime in the seed

11 years agoSpecify build-type: Simple
Duncan Coutts [Thu, 18 Oct 2007 12:51:10 +0000 (12:51 +0000)] 
Specify build-type: Simple

11 years agoAdd a boring file
Ian Lynagh [Thu, 13 Sep 2007 20:46:55 +0000 (20:46 +0000)] 
Add a boring file

11 years agoadd test from #1283 2007-09-13 ghc-6_8_branched_2007-09-03
Simon Marlow [Thu, 30 Aug 2007 14:10:50 +0000 (14:10 +0000)] 
add test from #1283

12 years agothread-safe getStdRandom and newStdGen
Matthew Brecknell [Wed, 18 Apr 2007 03:00:39 +0000 (03:00 +0000)] 
thread-safe getStdRandom and newStdGen

11 years agorandomIvalDouble now uses Int32, not Int, internally; fixes trac #801
Ian Lynagh [Wed, 18 Jul 2007 23:36:07 +0000 (23:36 +0000)] 
randomIvalDouble now uses Int32, not Int, internally; fixes trac #801

11 years agoFix createStdGen
Ian Lynagh [Wed, 18 Jul 2007 23:28:36 +0000 (23:28 +0000)] 
Fix createStdGen
It looks like there is an unwritten (as far as I can see) invariant that
StdGen's arguments are positive. Large Integer arguments to createStdGen
would break that invariant.

11 years agoMake StdGen use Int32's internally
Ian Lynagh [Wed, 18 Jul 2007 23:24:25 +0000 (23:24 +0000)] 
Make StdGen use Int32's internally

11 years ago--configure-option and --ghc-option are now provided by Cabal
Ross Paterson [Mon, 4 Jun 2007 11:59:36 +0000 (11:59 +0000)] 
--configure-option and --ghc-option are now provided by Cabal

12 years agoRemove non-random stuff (of base), and rename package to "random" random_2007-05-24
Ian Lynagh [Sat, 19 May 2007 11:57:39 +0000 (11:57 +0000)] 
Remove non-random stuff (of base), and rename package to "random"

12 years agoRemove Control.Parallel*, now in package parallel
Ian Lynagh [Fri, 18 May 2007 16:54:31 +0000 (16:54 +0000)] 
Remove Control.Parallel*, now in package parallel

12 years agoRemove the pretty-printing modules (now in package pretty(
Ian Lynagh [Fri, 18 May 2007 16:25:21 +0000 (16:25 +0000)] 
Remove the pretty-printing modules (now in package pretty(

12 years agoadd install-includes: field
Simon Marlow [Thu, 17 May 2007 09:49:48 +0000 (09:49 +0000)] 
add install-includes: field

12 years agocorrect the documentation for newForeignPtr
Simon Marlow [Wed, 16 May 2007 08:20:19 +0000 (08:20 +0000)] 
correct the documentation for newForeignPtr

12 years agoWhen doing safe writes, handle EAGAIN rather than raising an exception
Simon Marlow [Tue, 15 May 2007 11:46:15 +0000 (11:46 +0000)] 
When doing safe writes, handle EAGAIN rather than raising an exception
It might be that stdin was set to O_NONBLOCK by someone else, and we
should handle this case.  (this happens with GHCi, I'm not quite sure why)

12 years agoUse FilePath to make paths when building GHC/Prim.hs and GHC/PrimopWrappers.hs
Ian Lynagh [Mon, 14 May 2007 11:04:09 +0000 (11:04 +0000)] 
Use FilePath to make paths when building GHC/Prim.hs and GHC/PrimopWrappers.hs

12 years agoBuild GHC/Prim.hs and GHC/PrimopWrappers.hs from Cabal
Ian Lynagh [Wed, 9 May 2007 14:26:55 +0000 (14:26 +0000)] 
Build GHC/Prim.hs and GHC/PrimopWrappers.hs from Cabal

12 years agofix imports for non-GHC
Ross Paterson [Sun, 13 May 2007 00:11:38 +0000 (00:11 +0000)] 
fix imports for non-GHC

12 years agoGive an example of how intersection takes elements from the first set
Ian Lynagh [Sat, 12 May 2007 16:02:53 +0000 (16:02 +0000)] 
Give an example of how intersection takes elements from the first set

12 years agofurther clarify the docs for 'evaluate'
Malcolm.Wallace@cs.york.ac.uk [Tue, 8 May 2007 10:11:24 +0000 (10:11 +0000)] 
further clarify the docs for 'evaluate'

12 years agoimprove documentation for evaluate
Simon Marlow [Tue, 8 May 2007 08:17:12 +0000 (08:17 +0000)] 
improve documentation for evaluate

12 years agoFIX: #724 (tee complains if used in a process started by ghc)
Simon Marlow [Mon, 7 May 2007 12:35:37 +0000 (12:35 +0000)] 
FIX: #724 (tee complains if used in a process started by ghc)

Now, we only set O_NONBLOCK on file descriptors that we create
ourselves.  File descriptors that we inherit (stdin, stdout, stderr)
are kept in blocking mode.  The way we deal with this differs between
the threaded and non-threaded runtimes:

 - with -threaded, we just make a safe foreign call to read(), which
   may block, but this is ok.

 - without -threaded, we test the descriptor with select() before
   attempting any I/O.  This isn't completely safe - someone else
   might read the data between the select() and the read() - but it's
   a reasonable compromise and doesn't seem to measurably affect
   performance.

12 years agothe "unknown" types are no longer required
Simon Marlow [Thu, 26 Apr 2007 13:59:31 +0000 (13:59 +0000)] 
the "unknown" types are no longer required

12 years agoMake Control.Exception buildable by nhc98.
Malcolm.Wallace@cs.york.ac.uk [Fri, 4 May 2007 10:55:48 +0000 (10:55 +0000)] 
Make Control.Exception buildable by nhc98.
The nhc98 does not have true exceptions, but these additions should be
enough infrastructure to pretend that it does.  Only IO exceptions will
actually work.

12 years agoTrim imports, remove a cycle
simonpj@microsoft [Thu, 3 May 2007 12:30:10 +0000 (12:30 +0000)] 
Trim imports, remove a cycle

A first attempt at removing gratuitous cycles in the base package.
I've removed the useless module GHC.Dynamic, which gets rid of a cycle;
and trimmed off various unnecesary imports.

This also fixes the IsString import problem.

12 years agoBe less quiet about building the base package
simonpj@microsoft [Thu, 3 May 2007 09:37:07 +0000 (09:37 +0000)] 
Be less quiet about building the base package

12 years agoRemove Splittable class (a vestige of linear implicit parameters)
simonpj@microsoft [Wed, 21 Feb 2007 10:43:29 +0000 (10:43 +0000)] 
Remove Splittable class (a vestige of linear implicit parameters)

12 years agoAdd IsString to exports of GHC.Exts
simonpj@microsoft [Wed, 21 Feb 2007 10:42:49 +0000 (10:42 +0000)] 
Add IsString to exports of GHC.Exts

12 years agotweak documentation as per suggestion from Marc Weber on libraries@haskell.org
Simon Marlow [Thu, 26 Apr 2007 07:59:21 +0000 (07:59 +0000)] 
tweak documentation as per suggestion from Marc Weber on libraries@haskell.org

12 years agoAdd extra libraries when compiling with GHC on Windows
Ian Lynagh [Tue, 24 Apr 2007 21:31:27 +0000 (21:31 +0000)] 
Add extra libraries when compiling with GHC on Windows

12 years agoFollow Cabal changes in Setup.hs
Ian Lynagh [Wed, 18 Apr 2007 11:43:45 +0000 (11:43 +0000)] 
Follow Cabal changes in Setup.hs

12 years agoinclusion of libc.h is conditional on __APPLE__
Malcolm.Wallace@cs.york.ac.uk [Tue, 17 Apr 2007 08:55:56 +0000 (08:55 +0000)] 
inclusion of libc.h is conditional on __APPLE__

12 years agoMERGE: fix ugly uses of memcpy foreign import inside ST
Simon Marlow [Mon, 16 Apr 2007 10:15:30 +0000 (10:15 +0000)] 
MERGE: fix ugly uses of memcpy foreign import inside ST
fixes cg026

12 years agoFix configure with no --with-cc
Ian Lynagh [Sun, 15 Apr 2007 16:51:43 +0000 (16:51 +0000)] 
Fix configure with no --with-cc

12 years agoMacOS 10.3 needs #include <libc.h> as well
Malcolm.Wallace@cs.york.ac.uk [Sat, 14 Apr 2007 15:55:07 +0000 (15:55 +0000)] 
MacOS 10.3 needs #include <libc.h> as well

12 years agoFor nhc98 only, use hsc2hs to determine System.Posix.Types.
Malcolm.Wallace@cs.york.ac.uk [Fri, 13 Apr 2007 15:58:31 +0000 (15:58 +0000)] 
For nhc98 only, use hsc2hs to determine System.Posix.Types.
Avoids the existing autoconf stuff, by introducing an auxiliary module
called NHC.PosixTypes that uses hsc2hs, which is then simply re-exported
from System.Posix.Types.

12 years agowe need a makefileHook too
Simon Marlow [Fri, 13 Apr 2007 15:13:07 +0000 (15:13 +0000)] 
we need a makefileHook too