ghc-base.git
14 years agodirUtils.c no longer available
Malcolm.Wallace@cs.york.ac.uk [Tue, 13 Oct 2009 09:38:33 +0000 (09:38 +0000)]
dirUtils.c no longer available

14 years agoMake hGetContents throw an exception if an error is encountered
Simon Marlow [Mon, 12 Oct 2009 15:29:55 +0000 (15:29 +0000)]
Make hGetContents throw an exception if an error is encountered

Strictly speaking this breaks Haskell 98 compatibility, which requires
hGetContents to just end the lazy stream silently if an error is
encountered.  However, for a few reasons we think it will make
everyone's life a bit easier if we make this change

 1. Errors will be a lot more common in GHC 6.12.1, in the form
    of Unicode decoding errors.

 2. When Haskell 98 was designed, we didn't know how to throw
    exceptions from inside lazy I/O, but now we do.

 3. If anyone is actually relying on the previous behaviour, their
    code is arguably broken.

14 years agoRe-instate System.Console.Getopt for nhc98 builds.
Malcolm.Wallace@cs.york.ac.uk [Tue, 13 Oct 2009 09:28:43 +0000 (09:28 +0000)]
Re-instate System.Console.Getopt for nhc98 builds.
Although it was split out of base a while back, that change was
reverted for ghc soon afterwards, but nhc98 never noticed.

14 years agoRoll back "Another instance of nhc98's strange import semantics."
Ian Lynagh [Fri, 9 Oct 2009 18:56:18 +0000 (18:56 +0000)]
Roll back "Another instance of nhc98's strange import semantics."
Fri Oct  9 14:50:51 BST 2009  Malcolm.Wallace@cs.york.ac.uk
GHC (correctly) warns about the unused import, which breaks the validate
build.

14 years agoRoll back "Cope with nhc98's (occasionally-strange) import semantics"
Ian Lynagh [Fri, 9 Oct 2009 18:47:04 +0000 (18:47 +0000)]
Roll back "Cope with nhc98's (occasionally-strange) import semantics"
Fri Oct  9 14:43:51 BST 2009  Malcolm.Wallace@cs.york.ac.uk
GHC (correctly) warns about the unused import, which breaks the validate
build.

14 years agoIt seems that nhc98 needs defaulting in Data.Fixed.
Malcolm.Wallace@cs.york.ac.uk [Fri, 9 Oct 2009 13:52:42 +0000 (13:52 +0000)]
It seems that nhc98 needs defaulting in Data.Fixed.

14 years agoAnother instance of nhc98's strange import semantics.
Malcolm.Wallace@cs.york.ac.uk [Fri, 9 Oct 2009 13:50:51 +0000 (13:50 +0000)]
Another instance of nhc98's strange import semantics.

14 years agoMake Data.Functor compatible with non-GHC compilers.
Malcolm.Wallace@cs.york.ac.uk [Fri, 9 Oct 2009 13:48:21 +0000 (13:48 +0000)]
Make Data.Functor compatible with non-GHC compilers.

14 years agoCope with nhc98's (occasionally-strange) import semantics.
Malcolm.Wallace@cs.york.ac.uk [Fri, 9 Oct 2009 13:43:51 +0000 (13:43 +0000)]
Cope with nhc98's (occasionally-strange) import semantics.

14 years agoFix gratuitous breakage of nhc98 in System.IO.
Malcolm.Wallace@cs.york.ac.uk [Fri, 9 Oct 2009 13:40:01 +0000 (13:40 +0000)]
Fix gratuitous breakage of nhc98 in System.IO.

14 years agoFix gratuitous breakage of nhc98 in Control.Exception.Base.
Malcolm.Wallace@cs.york.ac.uk [Fri, 9 Oct 2009 13:36:15 +0000 (13:36 +0000)]
Fix gratuitous breakage of nhc98 in Control.Exception.Base.

14 years agoFix gratuitous breakage of non-GHC in Data.Fixed.
Malcolm.Wallace@cs.york.ac.uk [Fri, 9 Oct 2009 13:33:30 +0000 (13:33 +0000)]
Fix gratuitous breakage of non-GHC in Data.Fixed.

14 years agoFix gratuitous breakage for non-GHC in Data.Bits.
Malcolm.Wallace@cs.york.ac.uk [Fri, 9 Oct 2009 13:32:57 +0000 (13:32 +0000)]
Fix gratuitous breakage for non-GHC in Data.Bits.

14 years agoUse UTF-32LE instead of UTF32LE
Simon Marlow [Tue, 6 Oct 2009 10:02:07 +0000 (10:02 +0000)]
Use UTF-32LE instead of UTF32LE
The latter is not recognised by some iconv implementations.

14 years agoStrip any Byte Order Mark (BOM) from the front of decoded streams.
Ben.Lippmeier@anu.edu.au [Wed, 30 Sep 2009 08:42:29 +0000 (08:42 +0000)]
Strip any Byte Order Mark (BOM) from the front of decoded streams.
When decoding to UTF-32, Solaris iconv inserts a BOM at the front
of the stream, but Linux iconv doesn't.

14 years agouse UTF32BE/UTF32LE instead of UCS-4/UCS-4LE
Simon Marlow [Mon, 5 Oct 2009 10:15:54 +0000 (10:15 +0000)]
use UTF32BE/UTF32LE instead of UCS-4/UCS-4LE

14 years agoStrip any Byte Order Mark (BOM) from the front of decoded streams.
Ben.Lippmeier@anu.edu.au [Wed, 30 Sep 2009 08:42:29 +0000 (08:42 +0000)]
Strip any Byte Order Mark (BOM) from the front of decoded streams.
When decoding to UTF-32, Solaris iconv inserts a BOM at the front
of the stream, but Linux iconv doesn't.

14 years agoAdd traceEvent :: String -> IO ()
Simon Marlow [Fri, 25 Sep 2009 14:12:57 +0000 (14:12 +0000)]
Add traceEvent :: String -> IO ()
For emitting an event via the RTS tracing framework

14 years agoFix the error message when flushing the read buffer of a non-seekable Handle
Simon Marlow [Wed, 23 Sep 2009 09:05:36 +0000 (09:05 +0000)]
Fix the error message when flushing the read buffer of a non-seekable Handle

14 years agoFix #3534: No need to flush the byte buffer when setting binary mode
Simon Marlow [Wed, 23 Sep 2009 09:04:45 +0000 (09:04 +0000)]
Fix #3534: No need to flush the byte buffer when setting binary mode

14 years agoUse let !y = x in .. x .. instead of seq in $! and evaluate (#2273)
Simon Marlow [Wed, 16 Sep 2009 14:04:54 +0000 (14:04 +0000)]
Use let !y = x in .. x .. instead of seq in $! and evaluate (#2273)

14 years agomake some Applicative functions into methods, and split off Data.Functor (proposal...
Ross Paterson [Tue, 15 Sep 2009 17:31:09 +0000 (17:31 +0000)]
make some Applicative functions into methods, and split off Data.Functor (proposal #3335)

The following functions

    (<$) :: Functor f => a -> f b -> f a
    (*>) :: Applicative f => f a -> f b -> f b
    (<*) :: Applicative f => f a -> f b -> f a
    some :: Alternative f => f a -> f [a]
    many :: Alternative f => f a -> f [a]

are moved into the corresponding classes, with the existing implementations
as default definitions.  This gives people creating instances the option of
defining specialized implementations of these functions, though they should
be equivalent to the default definitions.

Although (<$) is now a method of the Functor class, it is hidden in the
re-export by the Prelude, Control.Monad and Monad.  The new module
Data.Functor exposes the full class, plus the function (<$>).  These are
also re-exported by Control.Applicative.

14 years agoOn Windows, use the console code page for text file encoding/decoding.
Judah Jacobson [Sun, 13 Sep 2009 02:21:26 +0000 (02:21 +0000)]
On Windows, use the console code page for text file encoding/decoding.

We keep all of the code page tables in the module
GHC.IO.Encoding.CodePage.Table.  That file was generated automatically
by running codepages/MakeTable.hs; more details are in the comments at the
start of that script.

Storing the lookup tables adds about 40KB to each statically linked executable;
this only increases the size of a "hello world" program by about 7%.

Currently we do not support double-byte encodings (Chinese/Japanese/Korean), since
including those codepages would increase the table size to 400KB.  It will be
straightforward to implement them once the work on library DLLs is finished.

14 years agoFix "init" docs: the input list need not be finite. Fixes trac #3465
Ian Lynagh [Fri, 11 Sep 2009 21:04:37 +0000 (21:04 +0000)]
Fix "init" docs: the input list need not be finite. Fixes trac #3465

14 years agoBump base version to 4.2.0.0
Ian Lynagh [Fri, 11 Sep 2009 15:39:13 +0000 (15:39 +0000)]
Bump base version to 4.2.0.0

14 years agoAddress #3310
Simon Marlow [Sun, 30 Aug 2009 15:28:50 +0000 (15:28 +0000)]
Address #3310

 - Rename BlockedOnDeadMVar   -> BlockedIndefinitelyOnMVar
 - Rename BlockedIndefinitely -> BlockedIndefinitelyOnSTM
 - instance Show BlockedIndefinitelyOnMVar is now
     "blocked indefinitely in an MVar operation"
 - instance Show BlockedIndefinitelyOnSTM is now
     "blocked indefinitely in an STM transaction"

clients using Control.OldException will be unaffected (the new
exceptions are mapped to the old names).  However, for base4-compat
we'll need to make a version of catch/try that does a similar
mapping.

14 years agoFix unicode conversion for MSB architectures
Ben.Lippmeier@anu.edu.au [Sun, 30 Aug 2009 13:00:28 +0000 (13:00 +0000)]
Fix unicode conversion for MSB architectures
This fixes the SPARC/Solaris build.

14 years agoFix #3441: detect errors in partial sequences
Simon Marlow [Sun, 30 Aug 2009 07:59:09 +0000 (07:59 +0000)]
Fix #3441: detect errors in partial sequences

14 years agoFix hWaitForInput
Simon Marlow [Thu, 27 Aug 2009 15:21:16 +0000 (15:21 +0000)]
Fix hWaitForInput
It was erroneously waiting when there were bytes to decode waiting in
the byte buffer.

14 years agofix debugging code
Simon Marlow [Thu, 27 Aug 2009 15:06:28 +0000 (15:06 +0000)]
fix debugging code

14 years agoAllow for configurable iconv include and library locations.
Matthias Kilian [Wed, 26 Aug 2009 15:44:06 +0000 (15:44 +0000)]
Allow for configurable iconv include and library locations.
This should help to fix the build on OpenBSD.

14 years agotypo in comment
Simon Marlow [Wed, 26 Aug 2009 08:52:52 +0000 (08:52 +0000)]
typo in comment

14 years agoun-hide some modules from the Haddock docs
Simon Marlow [Tue, 25 Aug 2009 15:24:57 +0000 (15:24 +0000)]
un-hide some modules from the Haddock docs

14 years agoApply fix for #1548, from squadette@gmail.com
Simon Marlow [Wed, 19 Aug 2009 12:07:00 +0000 (12:07 +0000)]
Apply fix for #1548, from squadette@gmail.com

14 years agoimprovements to Data.Fixed: instances for Typeable and Data, more predefined types
Ashley Yakeley [Wed, 12 Aug 2009 05:50:58 +0000 (05:50 +0000)]
improvements to Data.Fixed: instances for Typeable and Data, more predefined types

14 years agoFix "Cabal check" warnings
Ian Lynagh [Tue, 11 Aug 2009 21:58:56 +0000 (21:58 +0000)]
Fix "Cabal check" warnings

14 years agoAdd a GHC.Constants module; fixes trac #3094
Ian Lynagh [Sun, 9 Aug 2009 18:32:52 +0000 (18:32 +0000)]
Add a GHC.Constants module; fixes trac #3094

14 years agoApply proposal #3393
Ian Lynagh [Sun, 9 Aug 2009 13:47:17 +0000 (13:47 +0000)]
Apply proposal #3393
Add openTempFileWithDefaultPermissions and
openBinaryTempFileWithDefaultPermissions.

14 years agoAdd some more C wrappers; patch from Krister Walfridsson
Ian Lynagh [Fri, 7 Aug 2009 20:06:31 +0000 (20:06 +0000)]
Add some more C wrappers; patch from Krister Walfridsson
Fixes 21 testsuite errors on NetBSD 5.99.

14 years agoFixing configure for autoconf 2.64
Alexander Dunlap [Wed, 5 Aug 2009 06:07:48 +0000 (06:07 +0000)]
Fixing configure for autoconf 2.64

14 years agoadd INLINE toList
Ross Paterson [Thu, 6 Aug 2009 14:28:53 +0000 (14:28 +0000)]
add INLINE toList

In anticipation of the fixing of #2353.

14 years agofix a copyright
Simon Marlow [Wed, 5 Aug 2009 13:40:45 +0000 (13:40 +0000)]
fix a copyright

14 years agoTweak the BufferedIO class to enable a memory-mapped file implementation
Simon Marlow [Wed, 5 Aug 2009 13:40:36 +0000 (13:40 +0000)]
Tweak the BufferedIO class to enable a memory-mapped file implementation
We have to eliminate the assumption that an empty write buffer can be
constructed by setting the buffer pointers to zero: this isn't
necessarily the case when the buffer corresponds to a memory-mapped
file, or other in-memory device implementation.

14 years agoDeprecate Control.OldException
Ian Lynagh [Tue, 4 Aug 2009 14:39:10 +0000 (14:39 +0000)]
Deprecate Control.OldException

14 years agoWindows build fix, following RTS tidyup
Simon Marlow [Mon, 3 Aug 2009 13:11:21 +0000 (13:11 +0000)]
Windows build fix, following RTS tidyup

14 years agoUpdates to follow the RTS tidyup
Simon Marlow [Sat, 1 Aug 2009 22:07:43 +0000 (22:07 +0000)]
Updates to follow the RTS tidyup
C functions like isDoubleNaN moved here (primFloat.c)

14 years agoAdd integer-simple as a build option
Ian Lynagh [Wed, 22 Jul 2009 01:31:51 +0000 (01:31 +0000)]
Add integer-simple as a build option

14 years agoUse shift[LR]Integer in the Bits Integer instance
Ian Lynagh [Tue, 21 Jul 2009 22:24:40 +0000 (22:24 +0000)]
Use shift[LR]Integer in the Bits Integer instance

14 years agodepend directly on integer-gmp, rather than indirecting through integer
Ian Lynagh [Tue, 21 Jul 2009 18:52:28 +0000 (18:52 +0000)]
depend directly on integer-gmp, rather than indirecting through integer

14 years agoMove the instances of Functor and Monad IO to GHC.Base, to avoid orphans
Simon Marlow [Wed, 22 Jul 2009 10:21:30 +0000 (10:21 +0000)]
Move the instances of Functor and Monad IO to GHC.Base, to avoid orphans

14 years agomove "instance Exception Dynamic" so it isn't an orphan
Simon Marlow [Tue, 21 Jul 2009 09:38:54 +0000 (09:38 +0000)]
move "instance Exception Dynamic" so it isn't an orphan

14 years agoImprove the index checking for array accesses; fixes #2120 #2669
Ian Lynagh [Sun, 19 Jul 2009 15:32:28 +0000 (15:32 +0000)]
Improve the index checking for array accesses; fixes #2120 #2669
As well as checking that offset we are reading is actually inside the
array, we now also check that it is "in range" as defined by the Ix
instance. This fixes confusing behaviour (#2120) and improves some error
messages (#2669).

14 years agoMake chr say what its argument was, if it's a bad argument
Ian Lynagh [Sat, 18 Jul 2009 15:10:49 +0000 (15:10 +0000)]
Make chr say what its argument was, if it's a bad argument

14 years agoremove unused warning
Simon Marlow [Wed, 15 Jul 2009 12:44:16 +0000 (12:44 +0000)]
remove unused warning

14 years agowarning fix: -fno-implicit-prelude -> -XNoImplicitPrelude
Simon Marlow [Wed, 15 Jul 2009 12:28:39 +0000 (12:28 +0000)]
warning fix: -fno-implicit-prelude -> -XNoImplicitPrelude

14 years agoAdd hGetEncoding :: Handle -> IO (Maybe TextEncoding)
Simon Marlow [Wed, 15 Jul 2009 12:25:19 +0000 (12:25 +0000)]
Add hGetEncoding :: Handle -> IO (Maybe TextEncoding)
as suggested during the discussion on the libraries list

14 years agoAdd more documentation to mkTextEncoding
Simon Marlow [Wed, 15 Jul 2009 12:24:14 +0000 (12:24 +0000)]
Add more documentation to mkTextEncoding
noting that "//IGNORE" and "//TRANSLIT" suffixes can be used with GNU
iconv.

14 years agoAdd the utf8_bom codec
Simon Marlow [Wed, 15 Jul 2009 12:22:57 +0000 (12:22 +0000)]
Add the utf8_bom codec
as suggested during the discussion on the libraries list.

14 years agoExport Unicode and newline functionality from System.IO; update Haddock docs
Simon Marlow [Mon, 13 Jul 2009 11:31:04 +0000 (11:31 +0000)]
Export Unicode and newline functionality from System.IO; update Haddock docs

14 years agoadd a comment about the non-workingness of CHARBUF_UTF16
Simon Marlow [Tue, 7 Jul 2009 12:44:06 +0000 (12:44 +0000)]
add a comment about the non-workingness of CHARBUF_UTF16

14 years agoFix build on Windows
Ian Lynagh [Sat, 11 Jul 2009 00:43:51 +0000 (00:43 +0000)]
Fix build on Windows

14 years agoFix some "warn-unused-do-bind" warnings where we want to ignore the value
Ian Lynagh [Fri, 10 Jul 2009 20:45:13 +0000 (20:45 +0000)]
Fix some "warn-unused-do-bind" warnings where we want to ignore the value

14 years agoUse throwErrnoIfMinus1_ when calling getrusage
Ian Lynagh [Fri, 10 Jul 2009 20:42:21 +0000 (20:42 +0000)]
Use throwErrnoIfMinus1_ when calling getrusage

14 years agoRemove an unused import
Ian Lynagh [Fri, 10 Jul 2009 15:33:45 +0000 (15:33 +0000)]
Remove an unused import

14 years agoreportStackOverflow now returns IO ()
Ian Lynagh [Fri, 10 Jul 2009 15:32:57 +0000 (15:32 +0000)]
reportStackOverflow now returns IO ()
It used to do "return undefined" to return IO a.

14 years agoGHC.Conc.reportError now returns IO ()
Ian Lynagh [Fri, 10 Jul 2009 15:26:46 +0000 (15:26 +0000)]
GHC.Conc.reportError now returns IO ()
It used to return IO a, by "return undefined".

14 years agoFix some "warn-unused-do-bind" warnings where we want to ignore the value
Ian Lynagh [Fri, 10 Jul 2009 15:25:26 +0000 (15:25 +0000)]
Fix some "warn-unused-do-bind" warnings where we want to ignore the value

14 years agoMinor SampleVar refactoring
Ian Lynagh [Fri, 10 Jul 2009 15:14:38 +0000 (15:14 +0000)]
Minor SampleVar refactoring

14 years agoFix "warn-unused-do-bind" warnings in GHC/IO/Handle/Text.hs
Ian Lynagh [Fri, 10 Jul 2009 12:29:05 +0000 (12:29 +0000)]
Fix "warn-unused-do-bind" warnings in GHC/IO/Handle/Text.hs

14 years agoFix some "warn-unused-do-bind" warnings where we just want to ignore the result
Ian Lynagh [Fri, 10 Jul 2009 00:56:38 +0000 (00:56 +0000)]
Fix some "warn-unused-do-bind" warnings where we just want to ignore the result

14 years agoUse the result of writeCharBuf in GHC/IO/Encoding/Latin1.hs too
Ian Lynagh [Fri, 10 Jul 2009 00:40:32 +0000 (00:40 +0000)]
Use the result of writeCharBuf in GHC/IO/Encoding/Latin1.hs too

14 years agoMinor code tidyups in GHC.Conc
Ian Lynagh [Fri, 10 Jul 2009 00:38:01 +0000 (00:38 +0000)]
Minor code tidyups in GHC.Conc

14 years agoFix "warn-unused-do-bind" warning in GHC.Conc
Ian Lynagh [Fri, 10 Jul 2009 00:35:30 +0000 (00:35 +0000)]
Fix "warn-unused-do-bind" warning in GHC.Conc
If we fail to communicate with the IO manager then we print a warning
using debugErrLn from the ghc-prim package.

14 years agoFix "warn-unused-do-bind" warnings in System.Posix.Internals
Ian Lynagh [Thu, 9 Jul 2009 16:45:46 +0000 (16:45 +0000)]
Fix "warn-unused-do-bind" warnings in System.Posix.Internals

14 years agoFix "warn-unused-do-bind" warnings where we really do want to ignore the result
Ian Lynagh [Thu, 9 Jul 2009 16:39:12 +0000 (16:39 +0000)]
Fix "warn-unused-do-bind" warnings where we really do want to ignore the result

14 years agoAdd back imports needed on Windows
Ian Lynagh [Tue, 7 Jul 2009 18:19:24 +0000 (18:19 +0000)]
Add back imports needed on Windows

14 years agoRemove unused imports
Ian Lynagh [Tue, 7 Jul 2009 11:58:10 +0000 (11:58 +0000)]
Remove unused imports

14 years agoRemove unused imports from base
simonpj@microsoft.com [Mon, 6 Jul 2009 11:18:42 +0000 (11:18 +0000)]
Remove unused imports from base

These unused imports are detected by the new unused-import code

14 years agoUse the result of writeCharBuf
Simon Marlow [Mon, 6 Jul 2009 13:33:03 +0000 (13:33 +0000)]
Use the result of writeCharBuf

This only makes a difference when CHARBUF_UTF16 is in use, which it
normally isn't.  I suspect CHARBUF_UTF16 doesn't currently work for
other reasons (CHARBUF_UTF16 was an experiment before I wrote the
GHC.IO.Encoding.UTF* codecs), but this patch at least makes it
slightly closer to working.

14 years agoRemove some cruft from Data.HashTable
Ian Lynagh [Mon, 6 Jul 2009 18:16:30 +0000 (18:16 +0000)]
Remove some cruft from Data.HashTable

14 years agoAdd 'eof' to Text.ParserCombinators.ReadP
simonpj@microsoft.com [Mon, 6 Jul 2009 11:18:01 +0000 (11:18 +0000)]
Add 'eof' to Text.ParserCombinators.ReadP

Add a ReadP parser that succeeds at the end of input. Very useful!

14 years agoDon't export CLDouble for GHC; fixes trac #2793
Ian Lynagh [Sun, 5 Jul 2009 15:51:20 +0000 (15:51 +0000)]
Don't export CLDouble for GHC; fixes trac #2793
We never really supported CLDouble (it was a plain old double underneath),
and pretending that we do does more harm than good.

14 years agoa byte between 0x80 and 0xBF is illegal immediately (#3341)
Simon Marlow [Thu, 2 Jul 2009 08:14:15 +0000 (08:14 +0000)]
a byte between 0x80 and 0xBF is illegal immediately (#3341)

14 years agoavoid a warning
Simon Marlow [Tue, 30 Jun 2009 08:41:34 +0000 (08:41 +0000)]
avoid a warning

14 years agoAdd a wrapper for libiconv.
Matthias Kilian [Mon, 29 Jun 2009 18:36:34 +0000 (18:36 +0000)]
Add a wrapper for libiconv.

14 years ago#include <sys/times.h> if we have it (should fix build problems)
Simon Marlow [Mon, 29 Jun 2009 08:53:51 +0000 (08:53 +0000)]
#include <sys/times.h> if we have it (should fix build problems)

14 years agoset binary mode for existing FDs on Windows (fixes some GHCi test failures)
Simon Marlow [Fri, 26 Jun 2009 12:05:22 +0000 (12:05 +0000)]
set binary mode for existing FDs on Windows (fixes some GHCi test failures)

14 years agoMove directory-related stuff to the unix package
Simon Marlow [Thu, 25 Jun 2009 12:03:25 +0000 (12:03 +0000)]
Move directory-related stuff to the unix package
now that it isn't used on Windows any more.

14 years agofix the windows build even more 2009-06-25
Simon Marlow [Thu, 25 Jun 2009 15:25:27 +0000 (15:25 +0000)]
fix the windows build even more

14 years agonot having iconv is not fatal on Windows
Simon Marlow [Thu, 25 Jun 2009 11:58:04 +0000 (11:58 +0000)]
not having iconv is not fatal on Windows

14 years agofix build failure on Windows
Simon Marlow [Thu, 25 Jun 2009 09:46:09 +0000 (09:46 +0000)]
fix build failure on Windows

14 years agoFix iconv detection on OpenBSD
Ian Lynagh [Wed, 24 Jun 2009 12:54:22 +0000 (12:54 +0000)]
Fix iconv detection on OpenBSD
Matthias Kilian discovered that iconv_open is #define'd to something
else on OpenBSD, so the test needs to include the iconv header.

14 years agosetNonBlockingMode now takes a flag, can turn blocking mode back on again
Simon Marlow [Wed, 24 Jun 2009 11:50:29 +0000 (11:50 +0000)]
setNonBlockingMode now takes a flag, can turn blocking mode back on again

14 years agoCall nl_langinfo(CODESET) to get the name of the locale encoding on Unix
Simon Marlow [Tue, 23 Jun 2009 14:38:13 +0000 (14:38 +0000)]
Call nl_langinfo(CODESET) to get the name of the locale encoding on Unix

14 years agoadd hFlushAll, flushes both read and write buffers
Simon Marlow [Tue, 23 Jun 2009 13:38:18 +0000 (13:38 +0000)]
add hFlushAll, flushes both read and write buffers

14 years agofix bug in partial writes
Simon Marlow [Tue, 23 Jun 2009 10:50:04 +0000 (10:50 +0000)]
fix bug in partial writes

14 years agoTidy up use of read/write/recv/send; avoid unnecessary wrappers
Simon Marlow [Mon, 22 Jun 2009 09:26:56 +0000 (09:26 +0000)]
Tidy up use of read/write/recv/send; avoid unnecessary wrappers

14 years agoMake this file independent of HsBase.h, use HsBaseConfig.h only
Simon Marlow [Mon, 22 Jun 2009 08:39:57 +0000 (08:39 +0000)]
Make this file independent of HsBase.h, use HsBaseConfig.h only

14 years agoWindows: Unicode openFile and stat functions
Simon Marlow [Thu, 18 Jun 2009 13:54:58 +0000 (13:54 +0000)]
Windows: Unicode openFile and stat functions

14 years agoAdd a comment to remind us that memcpy_src_off is used by dph
Simon Marlow [Thu, 18 Jun 2009 11:26:16 +0000 (11:26 +0000)]
Add a comment to remind us that memcpy_src_off is used by dph