patch applied (packages/base): Allow System.Posix.Internals to
compile with nhc98 again.
Simon Marlow
marlowsd at gmail.com
Tue Jun 16 04:12:00 EDT 2009
On 15/06/2009 18:45, Ian Lynagh wrote:
> On Mon, Jun 15, 2009 at 09:58:48AM -0700, Ian Lynagh wrote:
>> Mon Jun 15 08:52:49 PDT 2009 Malcolm.Wallace at cs.york.ac.uk
>> * Allow System.Posix.Internals to compile with nhc98 again.
>> Also affects GHC.IO.Device, which is not very GHC-specific at all.
>>
>> M ./GHC/IO/Device.hs +8
>> M ./Makefile.nhc98 -1 +2
>> M ./System/Posix/Internals.hs +1
>> M ./include/Nhc98BaseConfig.h +1
>
> This is a bit of a hack - importing GHC.IO.Device for nhc98 - but it
> gets base building again on nhc98. Presumably we will be moving the
> portable bits of the unicode IO patches into System.IO.* (or another
> shared hierarchy) soon, and we can revert this hack then.
I wasn't planning on moving GHC.IO.Device - although the code itself is
portable, it isn't much use on its own. To make it useful we'd have to
also provide GHC.IO.Buffer, GHC.IO.BufferedIO and the tools to build
Handles. These APIs are portable, but their implementations are not.
However, this is just a taste of what's to come. If we split off the
low-level parts of base into ghc-base, then nhc98 will have to duplicate
some of that in its own libraries - e.g. System.Posix.Internals is sure
to be one module that moves into ghc-base.
Cheers,
Simon
More information about the Cvs-libraries
mailing list