Lazy Evaluation

2002-03-03 Thread Nguyen Phan Dung
  Hello,   Sorry for asking such a silly question: Haskell is using lazy evaluation. So, it means we should be able to declare and use a list of billions elements without any trouble. So I declare my list as follow:   mylist :: [Integer] mylist = [1..10]   In Hugs, I type my

Question about HOOD

2000-09-27 Thread Nguyen Phan Dung
Hi, * I am using Haskell Object Observation Debugger & I found that it's very interesting. However, I get in trouble when I use it with data structures that are not derived from Show class because it seems that HOOD only work with with functions that call function "print" only. * For examp

Module ... already loaded!

2000-09-27 Thread Nguyen Phan Dung
Hi, I am sorry for asking this simple question: Sometime, when I am using Hugs, I get this problem: "Error: Module ABC is already loaded" (ABC is the name of a module) Maybe this is because of some previous modules already loaded module ABC? Would you please tell me the reason why & is there

Problem in calling COM from Haskell

2000-07-23 Thread Nguyen Phan Dung
Hi, I am trying to write some Haskell application using COM. One application is controling the LEGO robot. The robot works fine when I code my program using VB. However, when I use Haskell, there is an error: "invoke fail", "invalid number of parameters". Because my Haskell program can be comp

How to list all properties & methods inside COM?

2000-04-17 Thread Nguyen Phan Dung
Hi, Sorry for this irrelevant question: I am doing my final year project related to Haskell & COM. I have to write a program that can read any COM & display all the properties & methods inside. Do you know how to solve this problem or would you please suggest some documents about this? Thank

Component: Strongly typed or Loosely typed is better?

2000-02-08 Thread Nguyen Phan Dung
Hello, I am interested in using Haskell as a glue language to glue other components together. However, there is a heck: Haskell is a strongly typed language while most components are written in different language with different types. So, for a glue language, which one is better: a strongly ty

Haskell & Clean

2000-01-13 Thread Nguyen Phan Dung
Hello, I have just read a book about Clean. It seems that Clean is similar to Haskell. So what are the important differences between Clean & Haskell? Thank you, Phan Dung.

No Subject

1999-12-06 Thread Nguyen Phan Dung
Hello, I heard that Visual Haskell is under development. Do you know when it is released? It will provide Haskell programmer an environment that is similar to Visual J++, Visual Basic, or...? Besides, if you know, would you please tell me where we can download Uniform Workbench? (I found the p

Problem with HDirect

1999-11-29 Thread Nguyen Phan Dung
Hello, If you know how to solve this, would you please help me? I am using HDirect to call Haskell from C. I tried to use the example in the "example\server" directory. I ran: "ihc -s -fhs-to-c --gen-headers -fuse-ints-everywhere --output-h=MathLib.h" This creates 2 files: "MathLib.h" & "Math

How to declare a new type?

1999-07-19 Thread Nguyen Phan Dung
Thank you very much for all the answers for my previous question. I would like to ask one more question : in a function, we can declare, for example soupMethod :: Show a => (String,a) -> String However, writing "Show a => (String,a)" is not a convenience way. Can we declare a new type, for in

instance overlapping

1999-07-18 Thread Nguyen Phan Dung
Hi, If I have the folowwing declaration: class Soup where ... instance Soup String where ... instance Soup t => Soup [t] where ... This will lead to an error: "instance overlapping". Is there anyway to solve this? (I could not make an instance for Char) Thank you very much ! Phan Dung.

How to pass a data structure between Haskell and other language? (for example C ?)

1999-07-06 Thread Nguyen Phan Dung
Hello, I want to pass some data structure (such as a record ... ) between Haskell and C. If you know anybody who did this or you have any ideas about this, would you please advise me? Thank you very much ! Regards, Phan Dung.

Making system call from Haskell?

1999-06-26 Thread Nguyen Phan Dung
Hi, Do anyone know another way to make system call from Haskell (such as finding files in a directory, change file attribute...) besides calling to another language to do the job? Thank you !

Haskell Object

1999-01-29 Thread Nguyen Phan Dung
Hello ! I'm using HaskellObject inside Visual Basic 6.0. If I create only 1 object (or 2 objects that have the same source), no problem happen. But when I create 2 objects (different source), Visual Basic 6.0 was crashed. Do you know why? Would you please reply as soon as possible ! Thank you

Where is "Redcard" ? (a program for Haskell to deal with IDL) ?

1999-01-25 Thread Nguyen Phan Dung
Hello ! I'm doing something related to COM & must use "Redcard" to make registry files from IDL files. If you know, would you please send me the program or tell me where can I download (as soon as possible). Thank you very much !