Re: [Haskell-cafe] Poll: Do you want a mascot?

2011-11-25 Thread Liyang HU
On 25 November 2011 17:28, Ivan Lazar Miljenovic wrote: >> And we already have one: http://paraiso-lang.org/ikmsm/books/c80.html > Uh. W...T...F...??? > Do I want to know what's going on there? :p It's called Reduce! λ Girl, a parody of Invade! Squid Girl. http://en.wikipedia.org/wiki/Sq

Re: [Haskell-cafe] Poll: Do you want a mascot?

2011-11-25 Thread Liyang HU
heathmatlock gmail.com> writes: > Question: Do you want a mascot?  > Yes And we already have one: http://paraiso-lang.org/ikmsm/books/c80.html /Liyang ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/hask

[Haskell-cafe] ANNOUNCE: HakkuTaikai: Haskell Hackathon in Tokyo, 25th September 2011

2011-08-25 Thread Liyang HU
You may have heard the rumours, and I can confirm that it's true: HakkuTaikai is happening! After spending a long week at ICFP 2011 talking about Haskell, why not relax by actually hacking some Haskell? Full details on the wiki page: http://www.haskell.org/haskellwiki/HakkuTaikai When: Sund

Re: [Haskell-cafe] How to add ENV variable in runhaskell shell script

2008-01-13 Thread Liyang HU
Hi, On 1/14/08, Steve Lihn <[EMAIL PROTECTED]> wrote: In perl scripts (unix), one can do #!/usr/local/bin/perl BEGIN { $ENV{LD_LIBRARY_PATH} = ...; } I've not tested this (what a great line to start a post...), but see if this works for you: #! /usr/bin/env LD_LIBRARY_PATH=/path/to/libs r

Re: [Haskell-cafe] Re: [Haskell] Re: SimonPJ and Tim Harris explain STM - video

2006-11-23 Thread Liyang HU
Hallo, On 24/11/06, Benjamin Franksen <[EMAIL PROTECTED]> wrote: > So, you could simply return the console output as (part of) the result > of the atomic action. Wrap it in a WriterT monad transformer, even. But this would break atomicity, wouldn't it? In the sense as you just described, yes.

Re: [Haskell] Re: [Haskell-cafe] SimonPJ and Tim Harris explain STM - video

2006-11-23 Thread Liyang HU
Hi, On 23/11/06, Benjamin Franksen <[EMAIL PROTECTED]> wrote: One answer is in fact "to make it so that Console.Write can be rolled back too". To achieve this one can factor the actual output to another task and inside the transaction merely send the message to a transactional channel (TChan):

Re: Naive question on lists of duplicates

2003-06-06 Thread Liyang HU
ch is going to be messy. Thankfully (I think) the System.Time module should take care of this for you, if you can massage your existing dates into some workable form... /Liyang [0] or some other suitable data structure. I like heaps because you can avoid costly O(n^2) duplicate checking by pay

Re: powerset

2003-06-06 Thread Liyang HU
get a handle on this > idea of [a] 'monoid'. Might http://www.engr.mun.ca/~theo/Misc/haskell_and_monads.htm be of any help? later, /Liyang -- who managed to sneak into Category Theory lectures, but still has no idea what a monad is. ^_^; --

Re: powerset

2003-06-05 Thread Liyang HU
+ ps Or at least, this is what would be going through my head if I were trying to write this. ^_^ Hope it helps a bit... later, /Liyang -- .--| Liyang HU |--| http://nerv.cx/ |--| [EMAIL PROTECTED] |--| ICQ: 39391385 |--. | :: This is not a signature.

Re: Dealing with configuration data

2002-09-26 Thread Liyang Hu
-cafe lists; you don't have to CC me. ^_- [0] http://www.informatik.uni-freiburg.de/~thiemann/WASH/ -- .--{ Liyang HU }--{ http://nerv.cx/ }--{ Caius@Cam }--{ ICQ: 39391385 }--. | ``Computer games don't affect kids, I mean if Pac Man affected us as

Dealing with configuration data

2002-09-25 Thread Liyang Hu
However it also tells me that this will /probably/ involve lots of needless lifting and rewriting of the existing code, which makes it even less enticing than passing everything around explicitly. Any opinions or suggestions? Cheers, /Liyang -- .--{ Liyang HU }--{ http://nerv.cx/ }--

Re: Precision of `Double's in Hugs

2002-01-17 Thread Liyang Hu
sion support ...) Thanks, /Liyang -- .--| Liyang HU |--| http://nerv.cx/ |--| Caius@Cam |--| ICQ: 39391385 |--. | HELLO KITTY gang terrorizes town, family STICKERED to death! | ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: Precision of `Double's in Hugs

2002-01-12 Thread Liyang Hu
ll notify Hugs' package maintainer and see if I can convince him/her to apply this ... > From a bit of browsing the code, it appears that setting > USE_DOUBLE_PRECISION will increase the precision of both Float > and Double types. Don't suppose the Haskell spec put a maximum precision le

Precision of `Double's in Hugs

2002-01-12 Thread Liyang Hu
a while to figure that one out. -- .--| Liyang Hu |--| http://nerv.cx/ |--| Caius@Cam |--| ICQ: 39391385 |--. | A [programming] language that doesn't affect the way you think| | about programming is not worth knowing. | __