[Haskell-cafe] An Extra Empty Line

2013-09-09 Thread Hong Yang
Hi Dear Haskellers, I have this small program to grep recursively in parallel. It works fine, but generates the last line empty. Is this empty line coming from mapConcurrently()? Thanks, Hong -- mygrepr.hs -- lrf.pl is an old Perl script to get all non-duplicate files recursively under the

Re: [Haskell-cafe] Looking for portable Haskell or Haskell like language

2013-04-27 Thread Hong Yang
I had similar work situation before. What I did was: install a CentOS virtual machine on Windows at home (CentOS version should be compatible to your RHEL5 version, and do not update it), then play with Haskell within CentOS. Your executables will be runnable on RHEL5. On Sat, Apr 27, 2013 at

[Haskell-cafe] cross-platform compile

2010-10-26 Thread Hong Yang
Just curious if Haskell can or will generate cross-platform executable code, e.g., generate code for Linux from a Windows machine. Thanks, Hong ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] automatically exclude unused modules at compile time

2010-02-09 Thread Hong Yang
I did not use -split-objs. This option did help after I tried it. Thanks. Hong On Mon, Feb 8, 2010 at 11:57 AM, Felipe Lessa felipe.le...@gmail.comwrote: On Mon, Feb 08, 2010 at 11:25:13AM -0600, Hong Yang wrote: Can we make GHC a little bit more intelligent to automatically exclude

[Haskell-cafe] automatically exclude unused modules at compile time

2010-02-08 Thread Hong Yang
When I turned on -Wall knob at compile time, I got a message: Warning: Module `System.Cmd' is imported, but nothing from it is used, except perhaps instances visible in `System.Cmd' To suppress this warning, use: import System.Cmd() Then I did four experiments as

Re: [Haskell-cafe] looking for a good algorithm

2009-11-13 Thread Hong Yang
Hi Casey, Thanks very much for your zeal. The table is a csv file. Actually the number of rows can be sixty thousand. Hong On Fri, Nov 13, 2009 at 5:08 PM, Casey Hawthorne cas...@istar.ca wrote: Sorry, I forgot to ask an important question. Is the table stored in a dense format as in

Re: [Haskell-cafe] looking for a good algorithm

2009-11-11 Thread Hong Yang
Thanks. I actually prototyped in Perl the SA method intuitively (though I do not know its name). But it is way slow. So I want to improve the speed by means of both algorithm and language. Hong On Wed, Nov 11, 2009 at 9:36 AM, Tillmann Vogt tillmann.v...@rwth-aachen.de wrote: Hong Yang

[Haskell-cafe] error on --++ bla bla bla

2009-09-30 Thread Hong Yang
Hi, I got an error if one of lines reads --++ bla bla bla where I tried to comment, but -- ++ bla bla bla (notice the space after --) is OK. Do you think this revealed a tiny bug in the GHC compiler (I am using Windows Haskell Platform 2009.2.0.2)? Thanks, Hong

Re: [Haskell-cafe] error on --++ bla bla bla

2009-09-30 Thread Hong Yang
-- introduces a comment. In GHCI: Prelude let (--++) = (+) in 5 --++ 6 11 Hope this helps, Dan On Wed, Sep 30, 2009 at 7:52 PM, Hong Yang hyang...@gmail.com wrote: Hi, I got an error if one of lines reads --++ bla bla bla where I tried to comment, but -- ++ bla bla bla (notice the space

Re: [Haskell-cafe] error on --++ bla bla bla

2009-09-30 Thread Hong Yang
:52 AM, Hong Yang hyang...@gmail.com wrote: Hi, I got an error if one of lines reads --++ bla bla bla where I tried to comment, but -- ++ bla bla bla (notice the space after --) is OK. Do you think this revealed a tiny bug in the GHC compiler (I am using Windows Haskell Platform 2009.2.0.2

Re: [Haskell-cafe] Cal, Clojure, Groovy, Haskell, OCaml, etc.

2009-09-28 Thread Hong Yang
Good libraries are not enough for a language to go beyond mere existence. There must exist good documents, i.e., good tutorials, good books, and good explanations and examples in the libraries, etc, that are easy for people to learn and use. In my humble opinion, Haskell has a lot of libraries,

Re: [Haskell-cafe] Cal, Clojure, Groovy, Haskell, OCaml, etc.

2009-09-28 Thread Hong Yang
A Cook Book is good but relies on people specifically working on it. I think most of the package authors submit their packages because they themselves need the modules in his real world. I think package authors adding examples in the Descriptions section is a good start when they submit their