[darcs-devel] Re: darcs patch: Remove some use of GHC internals and fix... (and 1 more)

David Roundy droundy at abridgegame.org
Sat Apr 2 11:10:15 PST 2005


On Sat, Apr 02, 2005 at 06:27:43PM +0100, Ian Lynagh wrote:
> David Roundy wrote on darcs-users:
> > The problem is that in a few places darcs uses ghc-specific internal APIs,
> > which are subject to change.  I'd like to fix this, but it's a bit of a
> > pain.  The issue in this case is a function that allows me to open a file
> > descriptor in C code, and then create a haskell Handle describing this
> > descriptor, which is a rather low-level operation, but fundamental to how
> > darcs uses zlib.
> 
> Why can't we just use Fd and fdToHandle, as in this patch?
> The tests still pass, at the very least.
> The only thing is I'm not sure if this causes problems for MS Windows.

I think that this would cause trouble for windows, and that's why we don't
currently do it this way.  :( Windows people, please correct me if I'm
wrong!
-- 
David Roundy
http://www.darcs.net




More information about the darcs-devel mailing list