Ian Lynagh [Sun, 24 May 2009 15:59:51 +0000 (15:59 +0000)]
Give bounds for the dependencies; fixes #3141
Malcolm.Wallace@cs.york.ac.uk [Wed, 1 Apr 2009 10:59:53 +0000 (10:59 +0000)]
use Nhc98BaseConfig.h rather than HsDirectoryConfig.h
Malcolm.Wallace@cs.york.ac.uk [Mon, 16 Mar 2009 11:38:15 +0000 (11:38 +0000)]
Since __hscore_R_OK and friends are inline C, use correct .h location.
This patch just adds HsDirectory.h into the foreign imports of these
values. Without it, nhc98 cannot generate correct interfacing code.
Ian Lynagh [Fri, 13 Mar 2009 21:13:57 +0000 (21:13 +0000)]
Stop the copyFile00{1,2} tests tripping over each other
Simon Marlow [Thu, 12 Mar 2009 16:14:08 +0000 (16:14 +0000)]
FIX #3086: use System.Win32.getTemporaryDirectory
Simon Marlow [Wed, 11 Mar 2009 11:37:37 +0000 (11:37 +0000)]
FIX #2963: Use System.Win32.getCurrentDirectory
Ian Lynagh [Sat, 7 Mar 2009 15:38:47 +0000 (15:38 +0000)]
Add config.guess, config.sub and install-sh
Malcolm.Wallace@cs.york.ac.uk [Wed, 18 Feb 2009 12:03:00 +0000 (12:03 +0000)]
Fix Hugs build (#ifdef code inclusion was slightly wrong)
Malcolm.Wallace@cs.york.ac.uk [Fri, 6 Feb 2009 17:34:47 +0000 (17:34 +0000)]
nhc98 now uses more of the code (shared with ghc) here.
Simon Marlow [Wed, 4 Feb 2009 16:33:19 +0000 (16:33 +0000)]
fix this test for the new version of createDirectoryIfMissing (#2808)
- add another race test, for two threads both doing create;cleanup
- ignore isDoesNotExistErrors in create
Duncan Coutts [Mon, 22 Dec 2008 16:41:05 +0000 (16:41 +0000)]
Fix createDirectoryIfMissing to not throw if the dir got deleted
When we call createDirectory and some file system object already exists
we have a problem. We need to distinguish if it is a file that already
exists or if it is a directory because in the latter case it is not an
error. Previously we called doesDirectoryExist however that does not
distinguish the dir not existing (due to another thread deleting it)
and an ordinary file existing. We now use withFileStatus to throw the
original AlreadyExistsError only if a non-directory object exists.
So now the only time we should get a spurious exception is if another
thread deletes the directory and puts a file in its place between our
call to createDirectory and withFileStatus. It should now be safe to
race createDirectoryIfMissing with itself or deleteDirectoryRecursive.
Duncan Coutts [Thu, 18 Dec 2008 14:47:04 +0000 (14:47 +0000)]
Alternative implementation of createDirectoryIfMissing
Ian Lynagh [Thu, 22 Jan 2009 01:12:58 +0000 (01:12 +0000)]
Require Cabal version >= 1.6
Ian Lynagh [Wed, 21 Jan 2009 18:21:23 +0000 (18:21 +0000)]
Add "bug-reports" and "source-repository" info to the Cabal file
Ian Lynagh [Fri, 9 Jan 2009 18:25:54 +0000 (18:25 +0000)]
Fix getPermissions001 on Windows
Ian Lynagh [Sun, 4 Jan 2009 17:31:59 +0000 (17:31 +0000)]
Avoid using IOError internals
Simon Marlow [Mon, 1 Dec 2008 09:18:39 +0000 (09:18 +0000)]
add Windows output
Simon Marlow [Mon, 1 Dec 2008 09:22:54 +0000 (09:22 +0000)]
rename test directory to avoid clash
Simon Marlow [Wed, 26 Nov 2008 12:36:59 +0000 (12:36 +0000)]
avoid race conditions in createDirectoryIfMissing (#2808)
Simon Marlow [Wed, 26 Nov 2008 11:56:06 +0000 (11:56 +0000)]
add test for createDirectoryIfMissing (#2808)
Simon Marlow [Fri, 14 Nov 2008 10:41:13 +0000 (10:41 +0000)]
add some extra_cleans
Simon Marlow [Wed, 12 Nov 2008 12:21:18 +0000 (12:21 +0000)]
make this test more robust to changes in the testsuite driver
Simon Marlow [Sat, 27 Sep 2008 13:31:11 +0000 (13:31 +0000)]
Fix these tests
Ian Lynagh [Sat, 20 Sep 2008 16:00:29 +0000 (16:00 +0000)]
Bump version number to 1.0.0.2
Ross Paterson [Sun, 31 Aug 2008 14:39:21 +0000 (14:39 +0000)]
fix typo in extra-source-files
Malcolm.Wallace@cs.york.ac.uk [Thu, 28 Aug 2008 10:47:33 +0000 (10:47 +0000)]
fix cabal build-depends for nhc98
Simon Marlow [Tue, 26 Aug 2008 09:17:19 +0000 (09:17 +0000)]
add createDirectory (already exists) test
Ross Paterson [Sun, 24 Aug 2008 22:44:13 +0000 (22:44 +0000)]
add extra-source-files
Ross Paterson [Sun, 24 Aug 2008 00:30:13 +0000 (00:30 +0000)]
add category field
Simon Marlow [Thu, 21 Aug 2008 14:35:50 +0000 (14:35 +0000)]
make more use of System.Win32 or System.Posix
Simon Marlow [Wed, 20 Aug 2008 14:01:24 +0000 (14:01 +0000)]
fix #2298: use MoveFileEx() on Windows
Simon Marlow [Mon, 18 Aug 2008 15:50:59 +0000 (15:50 +0000)]
test for renameFile
Ross Paterson [Tue, 12 Aug 2008 23:45:53 +0000 (23:45 +0000)]
import the Haskell 98 module Control.Exception.Base instead
Malcolm.Wallace@cs.york.ac.uk [Tue, 5 Aug 2008 15:52:53 +0000 (15:52 +0000)]
fixup for change of exception types in nhc98
Ian Lynagh [Sun, 3 Aug 2008 11:41:20 +0000 (11:41 +0000)]
Remove uses of catchAny and ignoreExceptions
Ian Lynagh [Mon, 23 Jun 2008 19:31:05 +0000 (19:31 +0000)]
Follow extensible exceptions changes
Ian Lynagh [Thu, 3 Jul 2008 15:47:32 +0000 (15:47 +0000)]
Silence warnings
Ian Lynagh [Fri, 20 Jun 2008 01:13:18 +0000 (01:13 +0000)]
Fix warnings in directory
Ian Lynagh [Wed, 11 Jun 2008 18:08:44 +0000 (18:08 +0000)]
Make currentDirectory001 not conflict with other tests running in parallel
Malcolm.Wallace@cs.york.ac.uk [Wed, 20 Feb 2008 10:24:53 +0000 (10:24 +0000)]
unbreak previous patch for nhc98
Simon Marlow [Mon, 18 Feb 2008 12:29:08 +0000 (12:29 +0000)]
getTemporaryDirectory: be more precise when catching exns from getEnv
Simon Marlow [Tue, 5 Feb 2008 14:54:50 +0000 (14:54 +0000)]
make this test work on Windows
I have no idea why it worked before
Simon Marlow [Tue, 22 Jan 2008 16:59:14 +0000 (16:59 +0000)]
canonicalizePath should also do System.FilePath.normalise
The example I've found where this is necessary is on Windows:
canonicalizePath on its own doesn't upper-case the drive letter, but
normalise does.
Ian Lynagh [Mon, 26 Nov 2007 21:42:52 +0000 (21:42 +0000)]
Fix a URL
Ross Paterson [Sat, 17 Nov 2007 14:40:59 +0000 (14:40 +0000)]
fix imports for non-GHC
Duncan Coutts [Thu, 18 Oct 2007 12:49:40 +0000 (12:49 +0000)]
Specify build-type: Configure
Simon Marlow [Thu, 18 Oct 2007 13:32:20 +0000 (13:32 +0000)]
this sneaked in somehow
Simon Marlow [Thu, 18 Oct 2007 13:06:23 +0000 (13:06 +0000)]
add test for #1652
Simon Marlow [Thu, 18 Oct 2007 12:17:55 +0000 (12:17 +0000)]
import System.Directory, not Directory
Simon Marlow [Thu, 18 Oct 2007 12:14:05 +0000 (12:14 +0000)]
move copyFile001 from testsuite
Simon Marlow [Thu, 18 Oct 2007 12:01:15 +0000 (12:01 +0000)]
Move tests from testsuite/tests/ghc-regress/lib/Directory
Ian Lynagh [Thu, 13 Sep 2007 21:05:26 +0000 (21:05 +0000)]
Add more entries to boring file
Ian Lynagh [Thu, 13 Sep 2007 20:46:48 +0000 (20:46 +0000)]
Add a boring file
sven.panne@aedion.de [Sun, 2 Sep 2007 12:55:21 +0000 (12:55 +0000)]
Fixed permission setting in copyFile
Copy the permissions to the *temporary* file before moving it, no to the
probably non-existing real destination file. Before this fix, "try" silently
wiped this bug under the carpet, leading to silently broken permissions.
Simon Marlow [Fri, 24 Aug 2007 10:41:06 +0000 (10:41 +0000)]
delete configure droppings in setup clean
Simon Marlow [Thu, 23 Aug 2007 11:16:05 +0000 (11:16 +0000)]
FIX #1280: getPermissions wasn't working on Vista
It turns out that _access() in the Windows C runtime used to ignore
the X_OK flag, in Vista it now returns an error. After browsing the C
runtime sources, I discovered that _stat() has an almost but not quite
completely bogus implementation of the st_mode field, which lets us
implement a slightly less incorrect approximation to getPermissions than does
_access().
Malcolm.Wallace@cs.york.ac.uk [Sat, 4 Aug 2007 09:28:15 +0000 (09:28 +0000)]
Restore working version of copyFile for nhc98.
The recent patch changing its implementation was insufficiently portable.
Ian Lynagh [Sun, 22 Jul 2007 11:26:49 +0000 (11:26 +0000)]
Use Control.Exception exception handlers, and make copyFile meet its spec
copyFile wasn't atomic before
Ian Lynagh [Sun, 22 Jul 2007 10:34:05 +0000 (10:34 +0000)]
Fix whitespace
Ian Lynagh [Sat, 21 Jul 2007 20:01:54 +0000 (20:01 +0000)]
Fix doesDirectoryExist; fixes trac #1490
We used to always strip trailing path separators from the path we were
given, but mingw's stat succeeds for C:\ and C:\foo but fails for C:
and C:\foo\. Thus we now use a trailing slash if and only if the path
we are given is a drive.
Ian Lynagh [Sun, 1 Jul 2007 22:25:33 +0000 (22:25 +0000)]
Ooops, we don't have dropDrive
Without it we sometimes do a redundant directory creation attempt, but
no harm should be done.
Ian Lynagh [Sat, 30 Jun 2007 12:52:44 +0000 (12:52 +0000)]
Use filepath rather than our own System.Directory.Internals
Ian Lynagh [Sat, 30 Jun 2007 10:58:34 +0000 (10:58 +0000)]
Add makeRelativeToCurrentDirectory
Moved from the filepath package, which we now depend on.
Malcolm.Wallace@cs.york.ac.uk [Wed, 27 Jun 2007 10:39:23 +0000 (10:39 +0000)]
Avoid using C comments in Haskell code :-)
Bertram Felgenhauer [Wed, 13 Jun 2007 04:03:40 +0000 (04:03 +0000)]
install HsDirectoryConfig.h
Simon Marlow [Wed, 6 Jun 2007 14:21:53 +0000 (14:21 +0000)]
#undef PACKAGE_NAME and friends to avoid clashes
Ross Paterson [Mon, 4 Jun 2007 11:59:35 +0000 (11:59 +0000)]
--configure-option and --ghc-option are now provided by Cabal
Malcolm.Wallace@cs.york.ac.uk [Fri, 25 May 2007 10:25:40 +0000 (10:25 +0000)]
Cpp exclusion macro -> defined(__GLASGOW_HASKELL__) || defined(__HUGS__)
Nhc98 does not define the symbol __NHC__ when compiling C code.
Ross Paterson [Fri, 25 May 2007 00:51:19 +0000 (00:51 +0000)]
all but NHC
Ross Paterson [Fri, 25 May 2007 00:16:25 +0000 (00:16 +0000)]
update CFILES pragma (used by Hugs only)
Malcolm.Wallace@cs.york.ac.uk [Thu, 24 May 2007 14:45:08 +0000 (14:45 +0000)]
glasgow only
Ian Lynagh [Thu, 24 May 2007 14:17:45 +0000 (14:17 +0000)]
Put configure.ac back in the repo; not sure how it got removed
Ian Lynagh [Wed, 23 May 2007 20:09:04 +0000 (20:09 +0000)]
Need shlobj.h on Windows
Ian Lynagh [Sun, 20 May 2007 15:57:43 +0000 (15:57 +0000)]
Rejig the #ifdeffery
Put __hscore_?_OK and __hscore_S_I?USR in the C inside
#ifdef __GLASGOW_HASKELL__ to match the foreign imports in the Haskell
code.
Don't check the constants are defined before defining the C functions,
as we assume that the functions exist in the Haskell code anyway.
Ian Lynagh [Sun, 20 May 2007 15:43:57 +0000 (15:43 +0000)]
Tiny refactoring
Ian Lynagh [Sat, 19 May 2007 11:54:19 +0000 (11:54 +0000)]
Remove non-directory stuff (of base), and rename package to "directory"
Ian Lynagh [Fri, 18 May 2007 16:54:31 +0000 (16:54 +0000)]
Remove Control.Parallel*, now in package parallel
Ian Lynagh [Fri, 18 May 2007 16:25:21 +0000 (16:25 +0000)]
Remove the pretty-printing modules (now in package pretty(
Simon Marlow [Thu, 17 May 2007 09:49:48 +0000 (09:49 +0000)]
add install-includes: field
Simon Marlow [Wed, 16 May 2007 08:20:19 +0000 (08:20 +0000)]
correct the documentation for newForeignPtr
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)
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
Ian Lynagh [Wed, 9 May 2007 14:26:55 +0000 (14:26 +0000)]
Build GHC/Prim.hs and GHC/PrimopWrappers.hs from Cabal
Ross Paterson [Sun, 13 May 2007 00:11:38 +0000 (00:11 +0000)]
fix imports for non-GHC
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
Malcolm.Wallace@cs.york.ac.uk [Tue, 8 May 2007 10:11:24 +0000 (10:11 +0000)]
further clarify the docs for 'evaluate'
Simon Marlow [Tue, 8 May 2007 08:17:12 +0000 (08:17 +0000)]
improve documentation for evaluate
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.
Simon Marlow [Thu, 26 Apr 2007 13:59:31 +0000 (13:59 +0000)]
the "unknown" types are no longer required
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.
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.
simonpj@microsoft [Thu, 3 May 2007 09:37:07 +0000 (09:37 +0000)]
Be less quiet about building the base package
simonpj@microsoft [Wed, 21 Feb 2007 10:43:29 +0000 (10:43 +0000)]
Remove Splittable class (a vestige of linear implicit parameters)
simonpj@microsoft [Wed, 21 Feb 2007 10:42:49 +0000 (10:42 +0000)]
Add IsString to exports of GHC.Exts
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
Ian Lynagh [Tue, 24 Apr 2007 21:31:27 +0000 (21:31 +0000)]
Add extra libraries when compiling with GHC on Windows
Ian Lynagh [Wed, 18 Apr 2007 11:43:45 +0000 (11:43 +0000)]
Follow Cabal changes in Setup.hs
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__
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
Ian Lynagh [Sun, 15 Apr 2007 16:51:43 +0000 (16:51 +0000)]
Fix configure with no --with-cc