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

Re: [Haskell-cafe] HList and Type signatures / synonyms

2009-09-06 Thread Edward Z. Yang
Excerpts from Günther Schmidt's message of Sun Sep 06 19:40:05 -0400 2009: I keep accumulating values and right now use plain tuples for that. I end up with a 12 element tuple and things are a bit messy. Hi, you may want to consider using the Writer monad. [1] I'd like to use extensible

[Haskell-cafe] get Scale of window in HOpenGL?

2009-05-30 Thread yu yang
Hi,   I want to move one object to the border of window, then go back to the start point. Does anyone one have an idea to implement it ? Thank you! ___ 好玩贺卡等你发,邮箱贺卡全新上线!

[Haskell-cafe] help :type class?

2009-05-16 Thread yu yang
Does anyone have an idea how to use an instance to list all the functions of type? Thank you!  ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/___ Haskell-Cafe mailing list

[Haskell-cafe] Re: Guidance on using asynchronous exceptions

2007-11-16 Thread Yang
oleg-at-pobox.com |haskell-cafe| wrote: Yang wrote: (Something like this is straightforward to build if I abandon Concurrent Haskell and use cooperative threading, and if the operations I wanted to perform could be done asynchronously.) All operations could be done asynchronously, at least

[Haskell-cafe] Asynchronous exceptions and the RealWorld

2007-11-15 Thread Yang
- I want to set timeouts on various IO operations in an existing library, ftphs. However, even if I wrap every call in `block`, it's unclear whether ftphs has been coded to deal with asynchronous exceptions, or whether state could be rendered inconsistent. Is there any solution for this aside

[Haskell-cafe] Guidance on using asynchronous exceptions

2007-11-15 Thread Yang
To follow up on my previous post (Asynchronous Exceptions and the RealWorld), I've decided to put together something more concrete in the hopes of eliciting response. I'm trying to write a library of higher-level concurrency abstractions, in particular for asynchronous systems programming. The

[Haskell-cafe] building hare on ghc-6.6

2007-01-11 Thread Yang
this and try loading the emacs file and entering haskell-refac-mode on a .hs buffer i get: Can't exec program: /home/yang/tmp/pkg/pure/todo/HaRe_20012006/refactorer/pfe ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

[Haskell-cafe] advice on architecting a library (and haskell software in general)

2007-01-11 Thread Yang
of the language. i believe other new haskellers may relate to some of these issues. thanks! yang ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] build error with happy-1.15 on ghc-6.6

2007-01-07 Thread Yang
per a previous thread, i addressed the 'package lang not found' issue by changing the following lines to: $ grep -rsn '\blang\b' . | grep Makefile ./happy/src/Makefile:27:SRC_HC_OPTS += #-package lang ./happy/tests/Makefile:62:HC_OPTS += -fglasgow-exts # -package lang however i still get a

[Haskell-cafe] no end to the build errors! (wxhaskell, afrp)

2007-01-07 Thread Yang
argh, still more build errors on various fronts. i'm using ghc-6.6 on fedora core 5 unless otherwise noted. thanks in advance for help on any of these. a lot of this is part of my attempt to learn more about and play with a high-level functional gui library (and, of course, for getting a better

Re: [Haskell-cafe] no end to the build errors! (wxhaskell, afrp)

2007-01-07 Thread Yang
into this, it appears that either wxhaskell has recently (judging from the docs on the official wxhaskell site) undergone a big reorg, or i'm still missing some wxhaskell libs. does this mean that i won't be able to get wxfruit working (without hacking it to update its usage of wxhaskell)? yang On 1

Re: [Haskell-cafe] no end to the build errors! (wxhaskell, afrp)

2007-01-07 Thread Yang
( WXFruit.hs, WXFruit.o ) WXFruit.hs:81:31: parse error on input `-' On 1/7/07, Brandon S. Allbery KF8NH allbery-at-ece.cmu.edu |haskell-cafe| ... wrote: On Jan 7, 2007, at 20:54 , Yang wrote: WXFruit.hs:12:17: Could not find module `Graphics.UI.WX': Hm. Did you install the whole thing

[Haskell-cafe] Micro-contributions to MissingH

2006-12-12 Thread Yang
Hi, I'm at the moment writing a very simple function, spanM (a la mapM). I realize that this is a rather general-purpose function, so I'm wondering if I should submit this as a patch for MissingH. If so, where in the new hierarchy should this be placed? Thanks in advance. Yang

Re: [Haskell-cafe] Haskell performance (again)!

2006-10-09 Thread Yang
On 10/8/06, Udo Stenzel u.stenzel-at-web.de |haskell-cafe| ... wrote: Yang wrote: type Poly = [(Int,Int)] addPoly1 :: Poly - Poly - Poly addPoly1 p1@(p1h@(p1c,p1d):p1t) p2@(p2h@(p2c,p2d):p2t) | p1d == p2d = (p1c + p2c, p1d) : addPoly1 p1t p2t | p1d p2d = p1h : addPoly1 p1t p2

[Haskell-cafe] Haskell performance (again)!

2006-10-08 Thread Yang
feel free to give me feedback/refinements on my code snippets. :) Thanks a ton for any enlightenment! Yang Aside: http://www.matthewmorgan.net/blog/archives/2004/10/07/haskell-performance. This post brings up a most reasonable point (venturing off onto tangent now) - space leaks are a much more

Question: Database access in Haskell

2002-03-07 Thread yang dianne
Dear Sir/Madam, I am considering implement a system using Haskell. I need to use database to manage data there. How can I access the data records in database from Haskell? Thanks for your advice! Best Regards, Dianne __ Do You Yahoo!? Try FREE

<    1   2   3