[Haskell-cafe] GSOC idea: Haskell JVM bytecode library

2010-03-26 Thread Alexandru Scvortov
Hi, I've got an idea for a Summer of Code project and I'd really appreciate some feedback on it. If people generally find it interesting, I'll go into more detail. GSoC: Haskell JVM bytecode library == What I'm thinking of writing a library for

Re: [Haskell-cafe] GSOC idea: Haskell JVM bytecode library

2010-03-26 Thread Alexandru Scvortov
: On Fri, Mar 26, 2010 at 08:01:57PM +, Alexandru Scvortov wrote: I'm thinking of writing a library for analyzing/generating/manipulating JVM bytecode. To be clear, this library would allow one to load and work with JVM classfiles; it wouldn't be a compiler, interpretor or a GHC backend

Re: [Haskell-cafe] A function that makes list of Bool lists from list of Int lists

2010-04-03 Thread Alexandru Scvortov
Too many points. listbool :: [[a]] - [[Bool]] listbool = zipWith ($) (map (map . const) (cycle [True, False])) Cheers, Alex On Saturday 03 April 2010 15:13:48 Edward Z. Yang wrote: Excerpts from Maur Toter's message of Sat Apr 03 09:54:26 -0400 2010: I am new with Haskell so I think this

Re: [Haskell-cafe] A function that makes list of Bool lists from list of Int lists

2010-04-03 Thread Alexandru Scvortov
Look at it from the inside, out. What does const do? Const is a function that takes two parameters and always returns the first one. For instance, const True x is True, for all x. What's \x - map (const x) then? (or map.const in my case) It's a function that takes something and maps all the

Re: [Haskell-cafe] Length of lists within list of lists?

2010-04-10 Thread Alexandru Scvortov
someMethod :: [[a]] - [Int] someMethod = map length There's a list, haskell-beginners better suited for this kind of question. Alex On Saturday 10 April 2010 18:02:37 boblettoj wrote: Hi i want to know if there is any method i can use to count the number of items in each list in a list of

[haskell-cafe] Finding a PID in Windows

2009-02-22 Thread Alexandru Scvortov
Quick question. In Linux, if you want to find the PID of a process, you use getProcessID from System.Posix.Process. How do you do the same under Windows? I cannot find the equivalent function in System.Win32 and searching Google does not yield any useful results. Thanks.