summaryrefslogtreecommitdiff
path: root/ghc/tests/lib
Commit message (Collapse)AuthorAgeFilesLines
* rempve some unused filesSimon Marlow2006-01-212-103/+0
|
* [project @ 2002-02-12 15:17:13 by simonmar]simonmar2002-02-122-0/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch over to the new hierarchical libraries --------------------------------------------- This commit reorganises our libraries to use the new hierarchical module namespace extension. The basic story is this: - fptools/libraries contains the new hierarchical libraries. Everything in here is "clean", i.e. most deprecated stuff has been removed. - fptools/libraries/base is the new base package (replacing "std") and contains roughly what was previously in std, lang, and concurrent, minus deprecated stuff. Things that are *not allowed* in libraries/base include: Addr, ForeignObj, ByteArray, MutableByteArray, _casm_, _ccall_, ``'', PrimIO For ByteArrays and MutableByteArrays we use UArray and STUArray/IOUArray respectively now. Modules previously called PrelFoo are now under fptools/libraries/GHC. eg. PrelBase is now GHC.Base. - fptools/libraries/haskell98 provides the Haskell 98 std. libraries (Char, IO, Numeric etc.) as a package. This package is enabled by default. - fptools/libraries/network is a rearranged version of the existing net package (the old package net is still available; see below). - Other packages will migrate to fptools/libraries in due course. NB. you need to checkout fptools/libraries as well as fptools/hslibs now. The nightly build scripts will need to be tweaked. - fptools/hslibs still contains (almost) the same stuff as before. Where libraries have moved into the new hierarchy, the hslibs version contains a "stub" that just re-exports the new version. The idea is that code will gradually migrate from fptools/hslibs into fptools/libraries as it gets cleaned up, and in a version or two we can remove the old packages altogether. - I've taken the opportunity to make some changes to the build system, ripping out the old hslibs Makefile stuff from mk/target.mk; the new package building Makefile code is in mk/package.mk (auto-included from mk/target.mk). The main improvement is that packages now register themselves at make boot time using ghc-pkg, and the monolithic package.conf in ghc/driver is gone. I've updated the standard packages but haven't tested win32, graphics, xlib, object-io, or OpenGL yet. The Makefiles in these packages may need some further tweaks, and they'll need pkg.conf.in files added. - Unfortunately all this rearrangement meant I had to bump the interface-file version and create a bunch of .hi-boot-6 files :-(
* [project @ 2001-08-22 12:24:41 by simonmar]simonmar2001-08-22219-5519/+0
| | | | Remove old test suite (subsumed by fptools/testsuite).
* [project @ 2001-08-08 14:21:07 by simonmar]simonmar2001-08-081-3/+3
| | | | semantics of take, drop and splitAt have changed
* [project @ 2001-08-08 10:36:59 by simonmar]simonmar2001-08-081-5/+6
| | | | update expected output
* [project @ 2001-06-29 13:53:55 by simonmar]simonmar2001-06-291-5/+2
| | | | Uncomment part of this test that works properly now.
* [project @ 2001-06-29 13:42:19 by simonmar]simonmar2001-06-292-0/+22
| | | | | Test that openFile in WriteMode doesn't truncate the file if an error occurs.
* [project @ 2001-06-29 13:40:50 by simonmar]simonmar2001-06-292-0/+59
| | | | | Test that readFile doesn't leave the file locked after its output has been forced completely.
* [project @ 2001-06-07 11:07:51 by sewardj]sewardj2001-06-072-1/+25
| | | | Fix Unix world breakage.
* [project @ 2001-06-07 10:45:30 by sewardj]sewardj2001-06-0717-3/+126
| | | | Track current changes in the text-mode-seek-on-Windows saga.
* [project @ 2001-06-01 14:33:01 by sewardj]sewardj2001-06-012-1/+6
| | | | More tracking of IO lib changes.
* [project @ 2001-06-01 13:07:35 by sewardj]sewardj2001-06-0120-9/+128
| | | | | Track recent changes to lib/std for mingw. Mostly, make all seeked-on file handles be in binary mode.
* [project @ 2001-05-31 10:32:28 by sewardj]sewardj2001-05-316-5/+12
| | | | Various mingw fixes.
* [project @ 2001-05-31 10:01:57 by simonmar]simonmar2001-05-311-0/+2
| | | | update expected output
* [project @ 2001-05-31 09:48:54 by sewardj]sewardj2001-05-312-6/+6
| | | | Avoid use of /dev/null on mingw.
* [project @ 2001-05-30 16:39:48 by sewardj]sewardj2001-05-302-1/+3
| | | | Give correct output for mingw.
* [project @ 2001-05-21 15:25:24 by simonmar]simonmar2001-05-2126-69/+103
| | | | More test reorganisation - most of these tests work now.
* [project @ 2001-05-21 14:08:36 by simonmar]simonmar2001-05-212-7/+14
| | | | Make it a bit clearer which output goes with which test.
* [project @ 2001-05-18 16:54:04 by simonmar]simonmar2001-05-18105-0/+1495
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I/O library rewrite ------------------- This commit replaces the old C/Haskell I/O implementation with a new Haskell-only one using the new FFI & hsc2hs. main points: - lots of code deleted: we're about 3000 lines of C lighter, but the amount of Haskell code is about the same. - performance is ok: some operations are faster, others are slower. There's still some tuning to do, though. - the new library is designed to handle read/write streams much better: a read/write stream gets a special kind of handle internally called a "DuplexHandle", which actually contains two separate handles, one for writing and one for reading. The upshot is that you can do simultaneous reading and writing to/from a socket or FIFO without any locking problems. The effect is similar to calling socketToHandle twice, except that finalization works properly (creating two separate Handles could lead to the socket being closed too early when one of the Handles is GC'd). - hConnectTo and withHandleFor are gone (no one responded to my mail on GHC users, but we can always bring 'em back if necessary). - I made a half-hearted attempt at keeping the system-specific code in one place: see PrelPosix.hsc. - I've rearranged the I/O tests and added lots more. ghc/tests/lib/IO now contains Haskell 98-only IO tests, ghc/test/lib/{IOExts, Directory, Time} now contain tests for the relevant libraries. I haven't quite finished in here yet, the IO tests work but the others don't yet. - I haven't done anything about Unicode yet, but now we can start to discuss what needs doing here. The new library is using MutableByteArrays for its buffers because that turned out to be a *lot* easier (and quicker) than malloc'd buffers - I hope this won't cause trouble for unicode translations though. WARNING: Windows users refrain from updating until we've had a chance to fix any issues that arise. Testing: the basic H98 stuff has been pretty thoroughly tested, but the new duplex handle stuff is still a little green.
* [project @ 2001-05-01 11:46:56 by simonmar]simonmar2001-05-014-2/+35
| | | | | | | | | Start a new directory for networking tests, and add a simple test which starts two threads which communicate via a socket. The socket subdirectory already contains some tests, but they're about 6 years old and don't appear to be designed to run without user intervention.
* [project @ 2001-04-02 21:24:44 by panne]panne2001-04-022-17/+17
| | | | Don't use deprecated exception functions
* [project @ 2001-04-02 21:20:07 by panne]panne2001-04-021-6/+6
| | | | fromInt/toInt is dead, long live fromIntegral!
* [project @ 2001-03-28 16:38:39 by simonmar]simonmar2001-03-281-1/+1
| | | | use newStablePtr instead of deprecated makeStablePtr.
* [project @ 2001-03-28 16:36:04 by simonmar]simonmar2001-03-281-0/+7
| | | | add a simple test for IOExts.performGC
* [project @ 2001-03-28 16:35:39 by simonmar]simonmar2001-03-282-2/+2
| | | | Add a simple test for performGC.
* [project @ 2001-03-28 16:33:55 by simonmar]simonmar2001-03-282-27/+0
| | | | remove this outdated, nonworking test
* [project @ 2001-03-28 16:20:00 by simonmar]simonmar2001-03-281-7/+6
| | | | | | | Use fromIntegral instead of fromInt/toInt. Marcin: this test shows up some problems with enumFrom & friends on the sized Integral types. Could you take a look? Cheers.
* [project @ 2001-03-28 15:16:32 by simonmar]simonmar2001-03-281-3/+3
| | | | maxBound :: Char is 0x10ffff now.
* [project @ 2001-01-14 15:46:53 by simonmar]simonmar2001-01-142-0/+17
| | | | | | Add a slightly stronger test for Time that the ones in tests/io. This one reads the current time, converts it to CalendarTime and back again, and tests that all three times converted to strings compare equal.
* [project @ 2000-12-12 17:21:40 by simonmar]simonmar2000-12-1211-60/+33
| | | | | | | | Take a pass over the tests, get most things working again. Mostly -package lang changes, and synching up of the expected output. This was a good exercise though: I found at least two real bugs in the process :)
* [project @ 2000-09-04 15:23:55 by simonmar]simonmar2000-09-043-1/+17
| | | | Test for freeing StablePtrs.
* [project @ 2000-06-29 21:08:02 by panne]panne2000-06-293-1/+177
| | | | Added test for Typeable instance
* [project @ 2000-06-29 19:47:50 by panne]panne2000-06-291-9/+14
| | | | | There is not much point in memoising Integers, so we should better use unary "numbers" (i.e. lists of units) instead
* [project @ 2000-06-12 20:47:34 by panne]panne2000-06-121-5/+5
| | | | | *nix-ified the expected output. M$-people are more used to error messages, and one has to lose... >:-)
* [project @ 2000-06-12 20:32:16 by panne]panne2000-06-121-1/+1
| | | | "Non-exhaustive guards" => "Non-exhaustive patterns"
* [project @ 2000-06-12 17:01:56 by panne]panne2000-06-123-4/+4
| | | | HC_OPTS => SRC_HC_OPTS again, sorry about that
* [project @ 2000-06-12 16:26:59 by panne]panne2000-06-123-11/+11
| | | | | | | * Changed `SRC_HC_OPTS += ...' to `HC_OPTS += ...', otherwise `make SRC_HC_OPTS=foo' does not work. * -syslib => -package
* [project @ 2000-06-09 13:48:09 by simonmar]simonmar2000-06-091-1/+1
| | | | | Guard failure will now throw a PatternMatchFail, the NonExhaustiveGuards exception is to be removed.
* [project @ 2000-05-16 13:55:46 by rrt]rrt2000-05-161-0/+1
| | | | Added import PrelIOBase, which is now needed.
* [project @ 2000-05-16 11:36:57 by rrt]rrt2000-05-161-3/+3
| | | | Add util packages to memo tests.
* [project @ 2000-04-18 16:47:50 by simonmar]simonmar2000-04-181-6/+6
| | | | | enumFrom<blah> on Ratios changed slightly recently. The current behaviour is correct.
* [project @ 2000-04-11 11:54:22 by simonmar]simonmar2000-04-111-1/+1
| | | | remove syslib misc.
* [project @ 2000-03-21 15:57:47 by simonmar]simonmar2000-03-211-3/+3
| | | | wibbles
* [project @ 2000-02-25 15:20:33 by simonmar]simonmar2000-02-252-2/+18
| | | | Add simple mkWeakPtr/addFinalizer test.
* [project @ 2000-01-18 13:36:53 by simonmar]simonmar2000-01-181-2/+2
| | | | syslib fix
* [project @ 2000-01-18 12:48:46 by simonmar]simonmar2000-01-181-1/+1
| | | | remove -syslib misc.
* [project @ 2000-01-18 12:48:13 by simonmar]simonmar2000-01-181-5/+5
| | | | fix a few -syslib options.
* [project @ 1999-12-08 14:14:32 by simonmar]simonmar1999-12-085-1/+176
| | | | | - add test cases for my URI library - add George Russell's tests for the TimeExts library
* [project @ 1999-11-16 11:36:15 by simonmar]simonmar1999-11-161-0/+44
| | | | sync output
* [project @ 1999-11-11 17:52:58 by simonpj]simonpj1999-11-113-3/+5
| | | | Small test fixes