lisp interface

1993-11-23 Thread Korrinn Fu
How do you use Lisp functions in Haskell code? This is what I have tried: In a file name test.hs, I write module Main where import Add main = print (add 1 2) In a file name test.hu, I write interface Add where add :: Int->Int->Int {-# add

Local definitions in list comprehensions

1993-11-23 Thread howard s goodman
I have just been trying to use a local definition in a list comprehen- sion, and found, of course, that it could not be done. Thus, when list comprehensions are being used to define complex structures, whole expressions often have to be repeated, which is primitive, to say the leas

Re: Haskell 1.3

1993-11-23 Thread kh
Ian Holyer writes: > To go back to the debate on instances, here is a concrete proposal for > handling instances in Haskell 1.3: I can see what you're doing, but I dislike the idea of no longer being able to define instances local to a module. This limits my choice of class and type names, and