krasimir [Wed, 25 Feb 2004 19:21:21 +0000 (19:21 +0000)]
[project @ 2004-02-25 19:21:20 by krasimir]
Added finalizeForeignPtr function
ralf [Tue, 24 Feb 2004 19:51:12 +0000 (19:51 +0000)]
[project @ 2004-02-24 19:51:11 by ralf]
Twin traversal is now based on accumulating maps.
Added polymorphic type extension for type constructors.
ralf [Tue, 24 Feb 2004 19:49:58 +0000 (19:49 +0000)]
[project @ 2004-02-24 19:49:58 by ralf]
Proliferation of unsafeCoerce in Data.Typeable stopped. (There is now
just one cast0 which generalises on all previous forms: cast, castss,
castarr.) Started classes Typeable1/2 for unary/binary type constructors.
Added instances for lists, products, sums, functions, maybies.
simonmar [Tue, 24 Feb 2004 12:39:12 +0000 (12:39 +0000)]
[project @ 2004-02-24 12:39:12 by simonmar]
New version of translate for mingw32, which correctly (allegedly)
reverses the command-line translation done by the standard C runtime
on Windows.
panne [Fri, 20 Feb 2004 17:46:38 +0000 (17:46 +0000)]
[project @ 2004-02-20 17:46:38 by panne]
Hugs has hSetBinaryMode, hPutBuf, and hGetBuf now.
stolz [Fri, 20 Feb 2004 10:55:09 +0000 (10:55 +0000)]
[project @ 2004-02-20 10:55:09 by stolz]
wibble (replace helper function with fromEnum)
stolz [Thu, 19 Feb 2004 10:42:50 +0000 (10:42 +0000)]
[project @ 2004-02-19 10:42:50 by stolz]
Preserve group/other bits in setPermissions.
Closes: SF 899533 Directory.setPermissions bug
https://sourceforge.net/tracker/index.php?func=detail&aid=899533&group_id=8032&atid=108032
simonmar [Wed, 18 Feb 2004 15:07:04 +0000 (15:07 +0000)]
[project @ 2004-02-18 15:07:03 by simonmar]
stat() needs to be wrapped too
simonmar [Tue, 17 Feb 2004 11:59:17 +0000 (11:59 +0000)]
[project @ 2004-02-17 11:59:16 by simonmar]
Also need to wrap fstat().
simonmar [Tue, 17 Feb 2004 11:22:23 +0000 (11:22 +0000)]
[project @ 2004-02-17 11:22:22 by simonmar]
Use C wrappers for lseek() and open(). On Linux, these functions are
macro'd to different versions when large file support is on, so to
make the libraries compilable with the NCG we need to use C wrappers
for these functions.
simonmar [Tue, 17 Feb 2004 11:21:04 +0000 (11:21 +0000)]
[project @ 2004-02-17 11:21:04 by simonmar]
Remove unused argument from commitBuffer
malcolm [Tue, 17 Feb 2004 11:16:36 +0000 (11:16 +0000)]
[project @ 2004-02-17 11:16:36 by malcolm]
Exclude "config.h" inclusion for nhc98 as well as Hugs.
ross [Mon, 16 Feb 2004 11:08:58 +0000 (11:08 +0000)]
[project @ 2004-02-16 11:08:58 by ross]
adjust imports for portability
ralf [Sun, 15 Feb 2004 13:24:43 +0000 (13:24 +0000)]
[project @ 2004-02-15 13:24:42 by ralf]
Another commit of boilerplate refactoring
related to twin traversal and type introspection.
Clean-up. After some reflection the list
processing module was not regarded suitable
for the library (see List.hs removed).
krasimir [Sun, 15 Feb 2004 13:04:47 +0000 (13:04 +0000)]
[project @ 2004-02-15 13:04:47 by krasimir]
Added support for tracers
ralf [Sat, 14 Feb 2004 18:18:48 +0000 (18:18 +0000)]
[project @ 2004-02-14 18:18:46 by ralf]
Refactored the approach to Twin Traversal.
Added some illustrative treatment of polymorphic lists.
ross [Fri, 13 Feb 2004 17:46:32 +0000 (17:46 +0000)]
[project @ 2004-02-13 17:46:32 by ross]
make import Foreign.C.String GHC-only to unbreak Hugs build
ross [Fri, 13 Feb 2004 15:17:40 +0000 (15:17 +0000)]
[project @ 2004-02-13 15:17:38 by ross]
array doc updates
simonmar [Fri, 13 Feb 2004 12:13:01 +0000 (12:13 +0000)]
[project @ 2004-02-13 12:13:00 by simonmar]
uncatched -> uncaught
krasimir [Thu, 12 Feb 2004 22:35:25 +0000 (22:35 +0000)]
[project @ 2004-02-12 22:35:25 by krasimir]
The UncatchedExceptionHandler is defined only for GHC
krasimir [Thu, 12 Feb 2004 21:23:49 +0000 (21:23 +0000)]
[project @ 2004-02-12 21:23:48 by krasimir]
Added interface to set/get handler for uncatched exceptions.
The handler is invoked from the GHC.TopHandler.topHandler or
Control.Concurrent.childHandler when an exception is catched.
simonpj [Thu, 12 Feb 2004 14:55:55 +0000 (14:55 +0000)]
[project @ 2004-02-12 14:55:55 by simonpj]
Comments
simonpj [Thu, 12 Feb 2004 14:55:31 +0000 (14:55 +0000)]
[project @ 2004-02-12 14:55:31 by simonpj]
Documentation for floatToDigits
simonpj [Thu, 12 Feb 2004 14:55:05 +0000 (14:55 +0000)]
[project @ 2004-02-12 14:55:05 by simonpj]
Explicit for-alls for Monad (so desugaring knows which order to give type args)
simonpj [Thu, 12 Feb 2004 14:54:19 +0000 (14:54 +0000)]
[project @ 2004-02-12 14:54:19 by simonpj]
Document non-std behaviour of array
simonmar [Wed, 11 Feb 2004 14:01:06 +0000 (14:01 +0000)]
[project @ 2004-02-11 14:01:06 by simonmar]
Put double quotes around the -#include flag, so that command-lines can
be cut-n-pasted.
ross [Thu, 5 Feb 2004 18:55:48 +0000 (18:55 +0000)]
[project @ 2004-02-05 18:55:47 by ross]
moved the monad transformer libraries into a separate mtl package.
malcolm [Thu, 5 Feb 2004 11:58:21 +0000 (11:58 +0000)]
[project @ 2004-02-05 11:58:21 by malcolm]
Fix definition of 'partition' to match the (non-)strictness mandated by
the Haskell'98 Libraries Report version.
ross [Thu, 5 Feb 2004 11:45:59 +0000 (11:45 +0000)]
[project @ 2004-02-05 11:45:59 by ross]
Hugs only: use the configure-set variable INLINE_ONLY instead of
`extern inline' (which works for gcc but not C99 compilers).
ross [Wed, 4 Feb 2004 17:13:53 +0000 (17:13 +0000)]
[project @ 2004-02-04 17:13:53 by ross]
plug a warning
malcolm [Wed, 4 Feb 2004 17:00:00 +0000 (17:00 +0000)]
[project @ 2004-02-04 17:00:00 by malcolm]
Excluding 'unfoldTreeM' and 'unfoldForestM' is overkill for nhc98.
A simpler workaround for the type inference bug is just to omit one
type signature from the mutually recursive pair.
malcolm [Wed, 4 Feb 2004 10:52:28 +0000 (10:52 +0000)]
[project @ 2004-02-04 10:52:28 by malcolm]
Plumb in Data.Queue for nhc98.
malcolm [Wed, 4 Feb 2004 10:51:18 +0000 (10:51 +0000)]
[project @ 2004-02-04 10:51:18 by malcolm]
Exclude functions 'unfoldTreeM' and 'unfoldForestM' in nhc98.
For some unknown reason they result in a type inference error:
"No default for Prelude.Monad"
ross [Mon, 2 Feb 2004 11:54:32 +0000 (11:54 +0000)]
[project @ 2004-02-02 11:54:32 by ross]
add some unfolds (pure, monadic depth-first and monadic breadth-first)
simonpj [Wed, 28 Jan 2004 10:04:25 +0000 (10:04 +0000)]
[project @ 2004-01-28 10:04:25 by simonpj]
---------------------------------------
Fix the WinME/98/95 double-backslash bug
---------------------------------------
Merge to stable branch, at least
once we are sure it's right
Backslashes should not be escaped in command-line arguments for rawSystem,
on Win32. This only actually causes failures on WinME/98/95, and we can't
test that since we don't have it. But this fix seems right regardless.
There are extensive new comments in libraries/base/System/Cmd.hs which
describe the issues.
ross [Tue, 27 Jan 2004 09:52:37 +0000 (09:52 +0000)]
[project @ 2004-01-27 09:52:37 by ross]
generalize the type of minusFM
simonmar [Mon, 26 Jan 2004 11:24:54 +0000 (11:24 +0000)]
[project @ 2004-01-26 11:24:54 by simonmar]
- fix bug(s) in emptySampleVar
- add isEmptySampleVar, with similar caveats on its use as isEmptyMVar
ross [Fri, 23 Jan 2004 13:35:16 +0000 (13:35 +0000)]
[project @ 2004-01-23 13:35:16 by ross]
add a Functor instance for FiniteMap
simonmar [Wed, 21 Jan 2004 17:28:47 +0000 (17:28 +0000)]
[project @ 2004-01-21 17:28:47 by simonmar]
__hscore_set_errno() should return void, not int.
ross [Tue, 20 Jan 2004 13:57:25 +0000 (13:57 +0000)]
[project @ 2004-01-20 13:57:25 by ross]
use fields in Node
ralf [Wed, 14 Jan 2004 14:58:57 +0000 (14:58 +0000)]
[project @ 2004-01-14 14:58:57 by ralf]
Added gdepth to determine depth of a term.
ross [Wed, 14 Jan 2004 14:19:43 +0000 (14:19 +0000)]
[project @ 2004-01-14 14:19:41 by ross]
(Hugs only) add hIsTerminalDevice, hGetEcho and hSetEcho.
malcolm [Wed, 14 Jan 2004 11:16:10 +0000 (11:16 +0000)]
[project @ 2004-01-14 11:16:10 by malcolm]
Unbreak for nhc98 after recent errno changes.
panne [Sat, 10 Jan 2004 12:53:43 +0000 (12:53 +0000)]
[project @ 2004-01-10 12:53:42 by panne]
Haddock fixes
simonmar [Thu, 8 Jan 2004 15:27:29 +0000 (15:27 +0000)]
[project @ 2004-01-08 15:27:29 by simonmar]
update threadDelay docs: delay is rounded up.
simonmar [Wed, 7 Jan 2004 12:43:50 +0000 (12:43 +0000)]
[project @ 2004-01-07 12:43:50 by simonmar]
Mention that threadDelay rounds its argument down to a multiple of 0.02s.
ross [Tue, 6 Jan 2004 14:01:52 +0000 (14:01 +0000)]
[project @ 2004-01-06 14:01:52 by ross]
fix for Hugs
simonmar [Tue, 6 Jan 2004 12:40:01 +0000 (12:40 +0000)]
[project @ 2004-01-06 12:40:00 by simonmar]
Fix, and simplify, the getting/setting of errno in Foreign.C.Error.
It was previously wrong: although we called a C function to get the
location of errno (correct), we cached the result in a CAF which was
wrong because the location is OS thread dependent. We must call the C
function every time we need the value of errno.
I also simplified things by making the getter/setter functions inlined
in the same way as the other C fragments in this library, and putting
them in HsBase.h.
MERGE TO STABLE
ross [Tue, 6 Jan 2004 10:31:05 +0000 (10:31 +0000)]
[project @ 2004-01-06 10:31:05 by ross]
new Queue type, using Chris Okasaki's cute 3-list implementation.
ross [Mon, 5 Jan 2004 17:44:30 +0000 (17:44 +0000)]
[project @ 2004-01-05 17:44:30 by ross]
Make runST(U)Array work with Hugs. This includes explicitly using
unsafeFreezeSTArray rather than unsafeFreeze, to avoid relying on rules.
ross [Mon, 5 Jan 2004 16:47:09 +0000 (16:47 +0000)]
[project @ 2004-01-05 16:47:09 by ross]
Change the drawing of trees so that long labels work better.
The new drawings are narrower but a little longer than before.
simonmar [Mon, 5 Jan 2004 16:03:34 +0000 (16:03 +0000)]
[project @ 2004-01-05 16:03:34 by simonmar]
Add runSTArray and runSTUArray, as suggested by John Meacham.
runSTUArray showed up an interesting deficiency in the type system
(see comments for details).
ross [Mon, 5 Jan 2004 10:07:52 +0000 (10:07 +0000)]
[project @ 2004-01-05 10:07:52 by ross]
doc tidy-ups
ross [Mon, 5 Jan 2004 10:07:25 +0000 (10:07 +0000)]
[project @ 2004-01-05 10:07:25 by ross]
doc tweak
panne [Fri, 2 Jan 2004 19:03:14 +0000 (19:03 +0000)]
[project @ 2004-01-02 19:03:14 by panne]
Annual copyright update
panne [Mon, 29 Dec 2003 17:16:42 +0000 (17:16 +0000)]
[project @ 2003-12-29 17:16:42 by panne]
Updated my email address
simonmar [Tue, 23 Dec 2003 13:58:18 +0000 (13:58 +0000)]
[project @ 2003-12-23 13:58:17 by simonmar]
- Fix up mingw build after changes to hGetBuf etc.
I don't think that hGetBufNonBlocking works correctly on Windows,
because there doesn't seem to be a non-blocking read primitive. I
haven't tested it, however.
- Clean up Unix versions of the low-level read/write functions in
Handle.hs. Now that these aren't used on Windows, they can be
made simpler.
simonmar [Tue, 23 Dec 2003 12:35:34 +0000 (12:35 +0000)]
[project @ 2003-12-23 12:35:34 by simonmar]
Fix yet another bug in hGetBuf/hGetBufNonBlocking
simonmar [Mon, 22 Dec 2003 12:41:52 +0000 (12:41 +0000)]
[project @ 2003-12-22 12:41:52 by simonmar]
add fillReadBufferWithoutBlocking (required for fixed
hGetBufNonBlocking implementation in IO.hs rev. 1.20)
simonmar [Mon, 22 Dec 2003 12:23:35 +0000 (12:23 +0000)]
[project @ 2003-12-22 12:23:35 by simonmar]
- Fix hGetBuf & hGetBufNonBlocking. There were various bugs in these
two functions, so I did a complete rewrite (again). They are quite
hard to get right it seems, so I've put together a test case
(shortly to be added to the test suite).
- Change to the semantics of hWaitForInput: when given a negative
time argument, this function will wait indefinitely for input to
arrive. It will wait in a thread-friendly way, unlike when the
time argument is positive. The docs now admit that hWaitForInput
is buggy when given a positive time value.
hWaitForInput h (-1) is now the approved way to wait for input
before calling hGetBufNonBlocking.
MERGE TO STABLE (hGetBuf is broken in 6.2).
simonmar [Mon, 22 Dec 2003 10:56:42 +0000 (10:56 +0000)]
[project @ 2003-12-22 10:56:42 by simonmar]
performGC should really do a major GC - this was broken at some point.
sof [Wed, 17 Dec 2003 17:15:12 +0000 (17:15 +0000)]
[project @ 2003-12-17 17:15:12 by sof]
merge rev. 1.13.2.1
sof [Wed, 17 Dec 2003 17:13:47 +0000 (17:13 +0000)]
[project @ 2003-12-17 17:13:47 by sof]
merge rev 1.48.2.4
simonmar [Tue, 16 Dec 2003 16:54:42 +0000 (16:54 +0000)]
[project @ 2003-12-16 16:54:42 by simonmar]
Add Show instance for Set
simonmar [Tue, 16 Dec 2003 16:54:12 +0000 (16:54 +0000)]
[project @ 2003-12-16 16:54:12 by simonmar]
Add Show instance for FiniteMap
panne [Mon, 15 Dec 2003 17:59:05 +0000 (17:59 +0000)]
[project @ 2003-12-15 17:59:05 by panne]
Fixed #ifdefs for Cygwin
sof [Fri, 12 Dec 2003 18:29:26 +0000 (18:29 +0000)]
[project @ 2003-12-12 18:29:26 by sof]
showIntAtBase:
- implementation uses quotRem [where the remainder isn't always
non-negative -- ditto for divMod, so there's no trivial fix],
negative bases aren't supported; catch this.
- separate argument validity checking from actual digitisation.
ralf [Sat, 6 Dec 2003 17:48:49 +0000 (17:48 +0000)]
[project @ 2003-12-06 17:48:49 by ralf]
Added Data instances for triples and quadruples.
panne [Thu, 4 Dec 2003 18:25:51 +0000 (18:25 +0000)]
[project @ 2003-12-04 18:25:51 by panne]
Synched #ifdefs, but only 90% sure if I got it right...
simonmar [Fri, 28 Nov 2003 11:08:54 +0000 (11:08 +0000)]
[project @ 2003-11-28 11:08:54 by simonmar]
Doc wibble
simonmar [Wed, 26 Nov 2003 10:00:09 +0000 (10:00 +0000)]
[project @ 2003-11-26 10:00:09 by simonmar]
oops, revert accidental commit
simonmar [Wed, 26 Nov 2003 09:55:26 +0000 (09:55 +0000)]
[project @ 2003-11-26 09:55:22 by simonmar]
Declare some libraries to be "stable".
ralf [Sun, 23 Nov 2003 22:19:35 +0000 (22:19 +0000)]
[project @ 2003-11-23 22:19:35 by ralf]
Added the missing Data instance for Either.
ralf [Sun, 23 Nov 2003 12:25:03 +0000 (12:25 +0000)]
[project @ 2003-11-23 12:25:02 by ralf]
Refactored some alias for generic builders and readers.
Worked out some interested stuff for reification of type structures.
ralf [Sun, 23 Nov 2003 12:23:49 +0000 (12:23 +0000)]
[project @ 2003-11-23 12:23:49 by ralf]
Added some trivial observers for type representations.
sof [Fri, 21 Nov 2003 16:24:44 +0000 (16:24 +0000)]
[project @ 2003-11-21 16:24:44 by sof]
code tidyup
panne [Sat, 15 Nov 2003 22:31:16 +0000 (22:31 +0000)]
[project @ 2003-11-15 22:31:16 by panne]
Decouple packages a bit more again: The prologue of the combined index is now
generated via shell magic from the package prologues. As a nice side effect,
some autoconf magic is gone, so configure.ac is effectively empty now (but not
for long... :-)
panne [Thu, 13 Nov 2003 19:23:12 +0000 (19:23 +0000)]
[project @ 2003-11-13 19:23:12 by panne]
Markup fix
ross [Thu, 13 Nov 2003 14:43:58 +0000 (14:43 +0000)]
[project @ 2003-11-13 14:43:58 by ross]
Hugs-only tweak
simonmar [Tue, 11 Nov 2003 11:50:53 +0000 (11:50 +0000)]
[project @ 2003-11-11 11:50:52 by simonmar]
Convert to use Haddock 0.6's combined contents/index functionality for
the hierarchical library docs.
HEADS UP: you need Haddock 0.6 in order to run 'make html' in
fptools/libraries now.
sof [Mon, 10 Nov 2003 15:55:13 +0000 (15:55 +0000)]
[project @ 2003-11-10 15:55:13 by sof]
ALL_DIRS: added Control/Parallel
sof [Mon, 10 Nov 2003 15:54:55 +0000 (15:54 +0000)]
[project @ 2003-11-10 15:54:55 by sof]
brought into the hier-lib world; stripped away outdated code & comments
simonmar [Mon, 10 Nov 2003 15:32:43 +0000 (15:32 +0000)]
[project @ 2003-11-10 15:32:43 by simonmar]
Change the documentation title from "Haskell Core Libraries" to "Haskell Hierarchical Libraries".
simonmar [Thu, 6 Nov 2003 17:34:00 +0000 (17:34 +0000)]
[project @ 2003-11-06 17:34:00 by simonmar]
Doc wibbles
ross [Thu, 6 Nov 2003 12:50:24 +0000 (12:50 +0000)]
[project @ 2003-11-06 12:50:22 by ross]
import Prelude if haddocking
ross [Wed, 5 Nov 2003 15:05:12 +0000 (15:05 +0000)]
[project @ 2003-11-05 15:05:12 by ross]
doc updates for mallocForeignPtr and friends
simonmar [Wed, 5 Nov 2003 10:43:10 +0000 (10:43 +0000)]
[project @ 2003-11-05 10:43:10 by simonmar]
Better documentation for unsafeThaw, unsafeFreeze.
simonmar [Wed, 5 Nov 2003 09:58:01 +0000 (09:58 +0000)]
[project @ 2003-11-05 09:58:01 by simonmar]
Fix a memory leak in __hscore_readdir() which meant that one struct
dirent was leaked at the end of each directory read.
Bug-reported-by: David Roundy <droundy@abridgegame.org>
What-a-great-system: Valgrind
ross [Tue, 4 Nov 2003 21:59:23 +0000 (21:59 +0000)]
[project @ 2003-11-04 21:59:23 by ross]
Hugs only: add finalizers with environments, as per the latest FFI draft.
ralf [Sun, 2 Nov 2003 17:52:09 +0000 (17:52 +0000)]
[project @ 2003-11-02 17:52:09 by ralf]
Minor extension to enable rebuild of Strafunski.
panne [Sun, 2 Nov 2003 16:30:16 +0000 (16:30 +0000)]
[project @ 2003-11-02 16:30:16 by panne]
* Added workaround for broken sigemptyset
* Use #if, not #ifdef for feature tests
* Nuked CVS keyword
panne [Sun, 2 Nov 2003 00:06:23 +0000 (00:06 +0000)]
[project @ 2003-11-02 00:06:23 by panne]
Added an extremely ugly workaround for the broken sigfillset macro on
OpenBSD, which misses a cast. Is there a better way?
Probably merge to STABLE.
sof [Thu, 30 Oct 2003 18:51:26 +0000 (18:51 +0000)]
[project @ 2003-10-30 18:51:26 by sof]
drop uses of __MINGW32__, no longer needed
stolz [Mon, 27 Oct 2003 12:09:44 +0000 (12:09 +0000)]
[project @ 2003-10-27 12:09:44 by stolz]
Avoid setting O_NONBLOCK when already set.
ross [Mon, 27 Oct 2003 09:56:11 +0000 (09:56 +0000)]
[project @ 2003-10-27 09:56:11 by ross]
unswap UNBLOCK/SETMASK (merge to STABLE)
sof [Tue, 21 Oct 2003 14:32:44 +0000 (14:32 +0000)]
[project @ 2003-10-21 14:32:43 by sof]
appease the GHC bigwigs
simonmar [Tue, 21 Oct 2003 14:00:20 +0000 (14:00 +0000)]
[project @ 2003-10-21 14:00:20 by simonmar]
oops, revert parts of previous commit that weren't supposed to be included.
simonmar [Tue, 21 Oct 2003 13:57:39 +0000 (13:57 +0000)]
[project @ 2003-10-21 13:57:39 by simonmar]
Fix bug in hGetBufNonBlocking that meant it would sometimes block.
simonmar [Tue, 21 Oct 2003 13:31:44 +0000 (13:31 +0000)]
[project @ 2003-10-21 13:31:44 by simonmar]
- Add _LE duals of the _GE functions
- Add minFM and maxFM
From: George Russell <ger@tzi.de>
simonmar [Tue, 21 Oct 2003 13:27:13 +0000 (13:27 +0000)]
[project @ 2003-10-21 13:27:13 by simonmar]
Make peekArray0 run in constant stack-space by testing the length of
the array first, then calling peekArray (which works backwards from
the end so it can be tail-recursive).