[Hugs-users] Fwd: Hugs'06

Ross Paterson ross at soi.city.ac.uk
Sat Dec 10 06:36:51 EST 2005


On Fri, Dec 09, 2005 at 10:18:10AM +0300, Bulat Ziganshin wrote:
> first, bugs. i attached two programs, which make problems under
> WinHugs/Feb04. The first shows error in `poke` for Word64
> values, and second even don't compiles because of problems in
> de-sugaring parallel comprehensions

Thanks for these reports.  The first one is now fixed in CVS.  For the
second, you need to import the Haskell 98 module List to get zip4.
The CVS version now looks in both Data.List and List.

> 2) lack of hGetBuf/hPutBuf operations

These are present in more recent versions of Hugs.

> 3) monomorphism restriction

A known bug, but unlikely to be fixed soon.  You can work around it with
explicit signatures.  Sorry.

> 4) inability to create <<foreign import "wrapper">> functions, so i can
> call back from C to Haskell. but i think that this is huge task and
> i personally can debug most parts of my programs without it
> 
> while writing the last sentence, i scanned Hugs docs directory for FFI
> word and found that import wrappers are supported, but how it works is
> not documented. can i request a section on using FFI in Hugs docs? i
> can even write small part of it, describing compilation of foreign
> imports in windows Hugs

foreign import wrapper is documented in the FFI spec.  The Hugs User's
Guide has a section "Compiling modules that use the Foreign Function
Interface" that explains how to prepare FFI modules for use with Hugs.



More information about the Hugs-Users mailing list