- 17 Nov, 2004 2 commits
-
-
sof authored
Expose Win32 console event handling to the user. Added RTS support for registering and delivering console events quite a while ago (rts/win32/ConsoleHandler.c), but got bored with it before completing the job. Here's the concluding commit; it does the following: - new module, base/GHC/ConsoleHandler.hs which supports registering of console event handlers (the null module on plats other than mingw). - special handling of aborted async read()s on 'standard input' in rts/win32/IOManager.c (together with GHC.Conc.asyncRead). See comments in that IOManager.c as to why this is needed. [ Any other code that performs blocking I/O on 'standard input' will need to be tweaked too to be console event handler/signal friendly.] - for now, disable the delivery of 'close' events (see rts/win32/ConsoleHandler.c:generic_handler() for reasons why) Feel free to hoik GHC/ConsoleHandler.hs around the lib hierarchy to wherever is considered more fitting. Unifying functionality between System.Posix.Signals and GHC.ConsoleHandler is one (obvious) thing to do. -- Demonstrating GHC.ConsoleHandler use; win32 only module Main(main) where import GHC.ConsoleHandler import System.IO (hFlush, stdout) import GHC.Conc (threadDelay) main :: IO () main = do installHandler (Catch (\ _ -> putStrLn "Caught console event; ignoring" >> hFlush stdout)) loop where loop = do threadDelay 100000 ls <- getLine putStrLn ls loop --
-
josefs authored
Needed to include a header file in Compat/Directory on windows
-
- 16 Nov, 2004 2 commits
- 15 Nov, 2004 1 commit
-
-
simonmar authored
Need to add System to ALL_DIRS
-
- 14 Nov, 2004 3 commits
-
-
krasimir authored
Use findExecutable from Compat.Directory instead of its own findBinary. Now the tool works under Windows as well as under Linux. With cygwin we can use #!runghc ...
-
krasimir authored
* Add stub for System.FilePath * Add findExecutable & copyFile to Compat.Directory
-
wolfgang authored
Mac OS X: Track Cabal-related changes (extra_frameworks -> extraFrameworks)
-
- 13 Nov, 2004 1 commit
-
-
panne authored
Fixed DocBook XML once again. Perhaps I should add a "make validate" CVS hook, hmmm... >:-)
-
- 12 Nov, 2004 11 commits
-
-
simonmar authored
we need -package Cabal for stage2
-
simonmar authored
Fix build
-
simonmar authored
Add Haskell 98 isAlpha divergence
-
simonmar authored
darwin-only fix
-
stolz authored
Fix previous commit: Don't handle Solaris2-flag _POSIX_PTHREAD_SEMANTICS in configure at all but simply #ifdef solaris2_TARGET_OS #define ... it in the header-file.
-
simonpj authored
Windows fix (include config.h)
-
simonpj authored
Update to new InstalledPackageInfo
-
simonpj authored
build fix for Windows
-
simonpj authored
add bits required for Compat.Directory on Windows
-
stolz authored
Push FreeBSD-unicode-detection into package
-
stolz authored
Push some unixisms from toplvl into package: usleep, SunOS-handling, getpw*
-
- 11 Nov, 2004 15 commits
-
-
sof authored
drop win32 protos, current windows.h's now provide 'em.
-
simonmar authored
Restore compatibility with GHC 6.2
-
simonmar authored
add missing file
-
simonmar authored
Update comment
-
simonpj authored
--------------------------------- Buglet in the handling of unlifted bindings --------------------------------- Unlifted bindings, like let I# v = ... in ... can't be generalised. In teh transition to GADTs I introduced a bug that accidentally discarded some necessary dictionary bindings. This commit fixes it by moving the test for unlifted bindings to a much earlier point in tcBindWithSigs, which seems a lot cleaner to me.
-
simonmar authored
'make depend' fix
-
simonmar authored
Compiler changes for the new package.conf format.
-
simonmar authored
The new ghc-pkg tool. So far, the new syntax is supported, and the format of the package definitions has changed to InstalledPackageInfo rather than the old PackageConfig type. The format of the package.conf file is now [InstalledPackageInfo] (using show/read). We still support the old ghc-pkg command line syntax, and the old PackageConfig syntax for package definitions. These are deprecated features, of course. Not much is done with the list of exposed/hidden modules, or versions (yet).
-
simonmar authored
Add a more prominent description of what this library is all about.
-
simonmar authored
Compile fixes
-
simonmar authored
Get rawSystem from Compat.RawSystem in libghccompat.
-
simonmar authored
- include cbits dir - omit certain libraries when ghc > 6.2 - build this library at boot-time, because it will be needed by ghc-pkg
-
simonmar authored
include lib/ in the build
-
simonmar authored
Add directories for ghc/lib & ghc/lib/compat
-
simonpj authored
Wibble
-
- 10 Nov, 2004 5 commits
-
-
simonmar authored
Use rawSystem from libghccompat.a
-
simonmar authored
Move the compatibility code for rawSystem from libraries/base into ghc/lib/compat.
-
wolfgang authored
64-bit fix: Change the type of context_switch from 'nat' to 'int'. It's accessed as CInt from cmm code, and sizeof(nat) > sizeof(int) on many 64-bit platforms.
-
wolfgang authored
Add support for powerpc64-linux and probably powerpc64-AIX.
-
wolfgang authored
Add powerpc64-unknown-linux
-