- 25 Jun, 2004 1 commit
-
-
ross authored
more Ptr/FunPtr documentation
-
- 23 Jun, 2004 1 commit
-
-
simonmar authored
Add documentation from the FFI spec.
-
- 22 Jun, 2004 1 commit
-
-
ross authored
Change the interface (but not the implementation) to match the FFI spec: * added charIsRepresentable, *CAString and *CWString * currently (and in violation of the spec), fooCString = fooCAString * The WString versions use UTF-16 under Windows and UTF-32 elsewhere (valid only if the compiler defines __STDC_ISO_10646__).
-
- 16 Jun, 2004 1 commit
-
-
malcolm authored
Typo.
-
- 15 Jun, 2004 3 commits
- 14 Jun, 2004 1 commit
-
-
malcolm authored
Solaris/nhc98 fixes: HAVE_TZNAME rather than HAVE_TM_ZONE, and need a "time.h" specification on every foreign import.
-
- 13 Jun, 2004 3 commits
-
-
panne authored
Changes related to arithmetic types: * Renamed macros NUMERIC_FOO to ARITHMETIC_FOO to match C99-speak * ARITHMETIC_TYPEs now have a Real instance, otherwise they are quite useless. Note that this differs from the FFI spec, but the spec should very probably changed in this respect. * Some changes to fix the wrong assumption that CTime/CClock are integral types, C99 in fact guarantees only that they are arithmetic types. This has been accomplished by using realToInteger = round . realToFrac :: Real a => a -> Integer instead of fromIntegral for CTime/CClock. I'm not sure if we could do better, going via Double seems to be overkill, but I couldn't think of a better way. GHC could e.g. use RULES here. Improvements welcome.
-
panne authored
Added missing dependencies of Haskell files to header files they include
-
panne authored
The FFI report does not mention that CClock and CTime have instances for Bounded, Real, Integral, and Bits.
-
- 12 Jun, 2004 1 commit
-
-
panne authored
timezone fix by Antony Courtney
-
- 02 Jun, 2004 5 commits
-
-
simonmar authored
Add a comment about fdGetMode, which doesn't work properly on Windows
-
simonmar authored
__hscore_PrelHandle_{send,recv}: make these mingw32-only
-
simonmar authored
- Win32: when using the threaded RTS, bypass the Async IO stuff and just make blocking calls to read()/write(). This gives a significant performance boost to programs doing lots of multithreaded I/O: in fact, a test program I have which does I/O over 500 pipes simultaneously goes twice as fast with this change, and is even faster than the non-threaded RTS (Windows only - Unix changes are in the pipeline too). - openFd: take an extra parameter to specify socketness of the file descriptor rather than assuming that all streams are sockets. Some streams (eg. pipes) aren't sockets.
-
simonmar authored
Add __hscore_PrelHandle_{send,recv}
-
simonmar authored
The lock arrays are too small on Windows, leading to buffer overruns and crashes when a program opens too many files. The problem is that on Windows, we shouldn't use FD_SETSIZE to get the max number of file descriptors: this is set to 64 in the mingw includes. The real maximum is 2048 (according to the crt sources), so we now hardwire that in. Also, put in a runtime check that we aren't overruning this array. MERGE TO STABLE
-
- 27 May, 2004 1 commit
-
-
simonpj authored
Inline the default method for newArray; big perf boost; comments with the pragma
-
- 25 May, 2004 2 commits
-
-
simonmar authored
Small performance hack in maxBound::Word.
-
simonpj authored
Remove spaces around the "%" when showing ratios. This is not absolutely strictly according to the H98 report, but it was suggested by Doug McIlroy According to the standard prelude, a list of Ratios prints like this: [1 % 1,1 % 2,1 % 3,1 % 4], which strongly suggests the grouping [1 % (1,1) % (2,1) % (3,1) % 4]. Even standing alone outside of lists, the style is at odds with mathematical custom. When did you last see 1/2 written as 1 / 2?
-
- 10 May, 2004 1 commit
-
-
malcolm authored
RawSystem inclusion belongs inside the __GLASGOW_HASKELL__ ifdef.
-
- 09 May, 2004 1 commit
-
-
dons authored
When .hc bootstrapping, don't build the Concurrent_stubs
-
- 06 May, 2004 2 commits
-
-
wolfgang authored
Make the documentation and the error messages match the way the threaded RTS is used nowadays (the -threaded flag to ghc rather than ./configure --enable-threaded-rts) MERGE TO STABLE
-
simonmar authored
Move the definition of rawSystem into a separate file which we #include in the places it is needed. This is slightly better than copying the code, since we now need it in three places (ghc/utils/runghc is the 3rd).
-
- 23 Apr, 2004 1 commit
-
-
ross authored
Hugs: use the same version of fixIO as GHC
-
- 20 Apr, 2004 3 commits
-
-
simonmar authored
New version of fixIO which does eager blackholing.
-
simonmar authored
- comments on INLINability of unsafePerformIO - change unsafeInterleaveIO from NOINLINE to INLINE(!) we believe this is safe. Interestingly, there's now a good reason to use unsafeInterleaveIO.
-
simonmar authored
Fix a file descriptor leak in openFile: if openFd fails, then we weren't closing the newly created descriptor.
-
- 14 Apr, 2004 1 commit
-
-
simonmar authored
indent: don't use tab characters
-
- 06 Apr, 2004 1 commit
-
-
panne authored
Tiny fix in Haddock markup
-
- 05 Apr, 2004 1 commit
-
-
simonpj authored
Use consistent capitalisation
-
- 30 Mar, 2004 4 commits
- 27 Mar, 2004 2 commits
- 24 Mar, 2004 1 commit
-
-
simonmar authored
Add caveat about finalizers (don't refer to Handles from finalizers).
-
- 22 Mar, 2004 1 commit
-
-
malcolm authored
For nhc98, at last include the Typeable macros which define the instance decls.
-
- 21 Mar, 2004 1 commit
-
-
ralf authored
Implemented renaming for Data.Typeable according to http://www.haskell.org//pipermail/libraries/2004-March/001846.html
-