Re: [Haskell] COM port IO on a Windows machine?

2004-03-17 Thread Axel Simon
On Wed, Mar 17, 2004 at 05:46:25PM +1030, Peter Pudney wrote: > I have a microcontroller connected to the COM2 port on a Windows machine, and > want my Haskell program to interact with it. My Haskell program is working > nicely on my Mac, with interaction using stdin and stdout, but I am not > fami

[Haskell] Re: DData revision /equivalence vs equality

2004-03-17 Thread Iavor S. Diatchki
hi , this is an interesting discussion and i agree that in general instances of Eq should be "equality", but what do people mean by "real equality"? probably the most reasonable interpretation is some sort of observational equivalance, i.e. if two things are equal we should always be able to replac

RE: [Haskell] ghc question

2004-03-17 Thread Simon Peyton-Jones
GHC does context reduction as late as possible, so that when overlapping instances are involved the commitment is made where maximum information is available. Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jurriaan Hage | Sent: 17 March 2004 15

[Haskell] ghc question

2004-03-17 Thread Jurriaan Hage
Hello, Given the fact that Haskell 98 demands that class constraints in an explicit type are in a normal form (either a variable, or a type variable applied to a list of types), it struck me that in the following (not very useful) program ghci yields a type which is not of that form. class X a

Re: [Haskell] HaXml and XML Schema

2004-03-17 Thread Frank Atanassow
On Mar 10, 2004, at 8:56 AM, [EMAIL PROTECTED] wrote: Example (readers familiar with the problem may skip this): Dear Mr.Robert Smith. This structure is represented by the XML Schema How would you represent this in Haskell? A first idea may be to store the enclosing strings: data Salutation

[Haskell] COM port IO on a Windows machine?

2004-03-17 Thread Peter Pudney
I have a microcontroller connected to the COM2 port on a Windows machine, and want my Haskell program to interact with it. My Haskell program is working nicely on my Mac, with interaction using stdin and stdout, but I am not familiar with Windows and a quick Google search did not give me any inform

[Haskell] RE: Win32 process spawning, POpen and Hugs, revisited

2004-03-17 Thread Simon Marlow
On a related note, I recently implemented a System.Process library on Unix. Source code attached. The Windows implementation should be relatively straightforward. Porting it to Hugs will require System.Posix.forkProcess, but I don't see any great difficulties there. One warning: if you want t

Re: [Haskell] documentation of Language.Haskell.Syntax

2004-03-17 Thread Ross Paterson
On Wed, Mar 17, 2004 at 11:12:23AM -, José Vilaça wrote: > I'm searching for more detailed information about > Language.Haskell.Syntax than the one provided by the Haddock > documentation of the Hierarchical Libraries. Unfortunately, that's all there is. The docs are sparse, but the types do

[Haskell] documentation of Language.Haskell.Syntax

2004-03-17 Thread José Vilaça
I'm searching for more detailed information about Language.Haskell.Syntax than the one provided by the Haddock documentation of the Hierarchical Libraries. I'm doing a tool that pick up code represented in the Haskell Syntax and i need to know the semantics of a lot of Construtors of the Haske

Re: [Haskell] New version of the HTTP module

2004-03-17 Thread Bjorn Bringert
Graham Klyne wrote: I'm trying to check this out with some software that uses a previous version (HXml toolbox), and I get the following error from Hugs: [[ Reading file "..\http\Browser.hs": Type checking ERROR "..\http\Browser.hs":865 - Type error in application *** Expression : ioAction $ o

[Haskell] Announce: Takusen - an Oracle DBMS library

2004-03-17 Thread Bayley, Alistair
In keeping with recent announcements regarding database libraries, Oleg Kiselyov and I present a library to interface to the Oracle DBMS. This library is a low-level interface for issuing SQL commands, similar to HSQL. It uses the Oracle Call Interface, a low-level C library provided with most Orac