Re: [Haskell-cafe] What's the deal with Clean?

2009-11-03 Thread David Leimbach
On Tue, Nov 3, 2009 at 1:37 PM, Andrew Coppin andrewcop...@btinternet.comwrote: Deniz Dogan wrote: Recently there has been a lot of discussion on this list about the programming language Clean and converting Clean programs to Haskell. Reading the Wikipedia article on the language, I can't

Re: [Haskell-cafe] Re: Libraries for Commercial Users

2009-10-28 Thread David Leimbach
I'm absolutely missing your point. Here's an example. I'm a commercial developer. I need to create an SNMP agent. You show me Haskell, I point at Erlang. Erlang wins for time to market, and Haskell doesn't get to be part of the solution. We need libraries. On Wed, Oct 28, 2009 at 2:44 AM,

Re: [Haskell-cafe] Hoogle is great but ...

2009-10-26 Thread David Leimbach
On 10/26/09, David Virebayre dav.vire+hask...@gmail.com wrote: On Sun, Oct 25, 2009 at 2:09 PM, Curt Sampson c...@starling-software.com wrote: But zaxis, here's another thing to look at. There's usually a view source link beside most of the functions that come up in the Haddock documentation

Re: [Haskell-cafe] Hoogle is great but ...

2009-10-26 Thread David Leimbach
On Mon, Oct 26, 2009 at 1:27 PM, Tom Tobin korp...@korpios.com wrote: On Mon, Oct 26, 2009 at 9:11 AM, David Leimbach leim...@gmail.com wrote: or the printf implementation. I tried to figure it out, then the Cenobites came and got me. QOTW, if I may say so. Only if you like

Re: [Haskell-cafe] Real World Haskell Chapter 19 and GHC 6.10

2009-10-21 Thread David Leimbach
It's educational to port the examples yourself. Dave On Wed, Oct 21, 2009 at 8:56 AM, Benjamin Herr b...@0x539.de wrote: Hi, Excerpts from Michael Mossey's message of Mi Okt 21 11:29:53 +0200 2009: how to get the RWH examples to run? Changing the imports from Control.Exception to

Re: [Haskell-cafe] I read somewhere that for 90% of a wide class of computing problems, you only need 10% of the source code in Haskell, that you would in an imperative language.

2009-09-30 Thread David Leimbach
On Wed, Sep 30, 2009 at 12:32 AM, Andrew Coppin andrewcop...@btinternet.com wrote: Casey Hawthorne wrote: I read somewhere that for 90% of a wide class of computing problems, you only need 10% of the source code in Haskell, that you would in an imperative language. If this is true, it

[Haskell-cafe] Re: Snow Leopard Breaks GHC

2009-08-31 Thread David Leimbach
, at 12:06 AM, David Leimbach wrote: Well the old binaries for Leopard already work on Snow Leopard. The problem is the code generated by the GHC compiler doesn't create correct 64bit code when invoking gcc, and gcc on Snow Leopard defaults to 64bit code now. The solution is to use -m32

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-30 Thread David Leimbach
/Building/Porting D On 30/08/2009, at 2:10 AM, David Leimbach wrote: Well if I build GHC on Leopard from HEAD and then copy it to Snow Leopard would that not work? Dave On Sat, Aug 29, 2009 at 1:52 AM, Dmitri Sosnik dim...@gmail.com wrote: Here - http://hackage.haskell.org/trac/ghc/wiki

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-29 Thread David Leimbach
Well if I build GHC on Leopard from HEAD and then copy it to Snow Leopard would that not work? Dave On Sat, Aug 29, 2009 at 1:52 AM, Dmitri Sosnik dim...@gmail.com wrote: Here - http://hackage.haskell.org/trac/ghc/wiki/Building, but it won't help, cause you need working ghc to build ghc. D

[Haskell-cafe] Snow Leopard Breaks GHC

2009-08-28 Thread David Leimbach
Just thought I'd point out that my old GHC install is now broken by the update to Snow Leopard. Dave ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-28 Thread David Leimbach
On Aug 28, 2009, at 7:15 PM, David Leimbach wrote: Just thought I'd point out that my old GHC install is now broken by the update to Snow Leopard. Dave ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-28 Thread David Leimbach
, at 7:57 PM, David Leimbach wrote: 6.10.4. Did you try to build any binaries? It doesn't produce correct assembly code (it looks like). Dave On Fri, Aug 28, 2009 at 4:55 PM, Ross Mellgren rmm-hask...@z.odi.acwrote: My 6.10.1 install still works alright after upgrade to 10.6/Snow Leopard

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-28 Thread David Leimbach
, but it's not helpful for me. There is a closed ticket for this bug, but it doesn't exactly tell us how or when we'll see a fix :-) Maybe the answer is run windows or linux :-) D On 29/08/2009, at 10:06 AM, David Leimbach wrote: The compilation failed. On Fri, Aug 28, 2009 at 4:58 PM, Ross

Re: [Haskell-cafe] ANN: jail-0.0.1 - Jailed IO monad

2009-08-27 Thread David Leimbach
http://hackage.haskell.org/package/IOSpec -- ? Looks kind of promising though I must confess I've never used it. Dave On Thu, Aug 27, 2009 at 7:39 AM, Sebastiaan Visser sfvis...@cs.uu.nlwrote: On Aug 27, 2009, at 4:16 PM, Eugene Kirpichov wrote: Cool! However, it does not protect me from

Re: [Haskell-cafe] Re: Where do I put the seq?

2009-08-20 Thread David Leimbach
On Thu, Aug 20, 2009 at 2:52 AM, Jules Bean ju...@jellybean.co.uk wrote: Peter Verswyvelen wrote: Not at all, use it for whatever you want to :-) I'm writing this code because I'm preparing to write a bunch of tutorials on FRP, and I first wanted to start with simple console based FRP, e.g.

Re: [Haskell-cafe] Re: Where do I put the seq?

2009-08-20 Thread David Leimbach
and since the input that the user gives depends on the output on the screen (it represents the user - machine dialog loop), we must make sure that laziness does not go wild and strictness is needed to respect this dependency. But as Ryan showed, seq is not really needed (but pattern

Re: [Haskell-cafe] Re: Where do I put the seq?

2009-08-19 Thread David Leimbach
Try LineBuffering. I do linewise stuff with interact a lot. You'll find stuff like unlines . lines may help too. In fact I just wrote a blog post about this. http://leimy9.blogspot.com I'm trying to write some interactive code to automate working with serial console controlled power strips,

Re: [Haskell-cafe] Re: Where do I put the seq?

2009-08-19 Thread David Leimbach
for input. Ah I see, I misunderstood. Sorry for the noise! ;-) I thought perhaps you'd hit something I ran into last night. Dave See e.g. http://hpaste.org/fastcgi/hpaste.fcgi/view?id=8316#a8328 On Wed, Aug 19, 2009 at 5:00 PM, David Leimbach leim...@gmail.com wrote: Try

Re: [Haskell-cafe] Re: Where do I put the seq?

2009-08-19 Thread David Leimbach
/view?id=8316#a8328 On Wed, Aug 19, 2009 at 5:00 PM, David Leimbach leim...@gmail.comwrote: Try LineBuffering. I do linewise stuff with interact a lot. You'll find stuff like unlines . lines may help too. In fact I just wrote a blog post about this. http://leimy9.blogspot.com I'm

Re: [Haskell-cafe] Re: Where do I put the seq?

2009-08-19 Thread David Leimbach
Argh... I too have been up too late :-). I edited THE WRONG FILE! No wonder your change didn't take effect! :-/ Time for coffee I suppose. On Wed, Aug 19, 2009 at 8:38 AM, David Leimbach leim...@gmail.com wrote: This doesn't seem to be working for me interactively though on a Mac. I still

Re: [Haskell-cafe] Re: Where do I put the seq?

2009-08-19 Thread David Leimbach
this on the Haskell wiki or a blog or something, so others can contribute and comment. I would like to show real examples that explain the shortcomings of the FRP approaches, because now this is still a bit blurry to me. On Wed, Aug 19, 2009 at 5:43 PM, David Leimbach leim...@gmail.com wrote

Re: [Haskell-cafe] Re: Where do I put the seq?

2009-08-19 Thread David Leimbach
would like to show real examples that explain the shortcomings of the FRP approaches, because now this is still a bit blurry to me. On Wed, Aug 19, 2009 at 5:43 PM, David Leimbach leim...@gmail.comwrote: This Monad you've created is quite excellent. I was trying to do something like this about

Re: [Haskell-cafe] Re: Where do I put the seq?

2009-08-19 Thread David Leimbach
:43 PM, David Leimbach leim...@gmail.com wrote: This Monad you've created is quite excellent. I was trying to do something like this about a year ago, to make the input and output handling of an interactive bowling score card work nicely. I kept running into issues, and did not believe

Re: [Haskell-cafe] Re: Where do I put the seq?

2009-08-19 Thread David Leimbach
I've corrected it. It still doesn't suffer looping. :-) On Wed, Aug 19, 2009 at 10:31 AM, David Leimbach leim...@gmail.com wrote: Doesn't seem to compile. I nearly never use case statements in my code, so I'm not really sure what's going on. neat2.hs:14:39: parse error on input `=' Dave

Re: [Haskell-cafe] Re: Where do I put the seq?

2009-08-19 Thread David Leimbach
19, 2009 at 7:37 PM, David Leimbach leim...@gmail.com wrote: I've corrected it. It still doesn't suffer looping. :-) On Wed, Aug 19, 2009 at 10:31 AM, David Leimbach leim...@gmail.com wrote: Doesn't seem to compile. I nearly never use case statements in my code, so I'm not really

Re: [Haskell-cafe] Re: Where do I put the seq?

2009-08-19 Thread David Leimbach
years to go, so I won't be bored :-) On Wed, Aug 19, 2009 at 9:46 PM, David Leimbach leim...@gmail.com wrote: Very cool! I am still wondering what the significance of the DList is with this though, or why it was needed to begin with. Dave On Wed, Aug 19, 2009 at 12:28 PM, Ryan Ingram

Re: [Haskell-cafe] ANN: Leksah 0.6

2009-07-24 Thread David Leimbach
The Mac Binary is a great addition! :-) Thanks! On Fri, Jul 24, 2009 at 6:52 AM, Hamish Mackenzie ham...@firestream.co.ukwrote: Hi, Just a quick note to let people know we released a new version of Leksah this week. Thanks for the help and feedback on the previous version. We have done

Re: [Haskell-cafe] Monoid wants a (++) equivalent

2009-07-01 Thread David Leimbach
On Wed, Jul 1, 2009 at 5:18 AM, Jules Bean ju...@jellybean.co.uk wrote: Duncan Coutts wrote: I agree, if we can't use ++ then is the next best thing. As John says it's already a monoid operator for Data.Sequence and Text.PrettyPrint. I agree, if we can't use + and + then is the next best

Re: [Haskell-cafe] Monoid wants a (++) equivalent

2009-07-01 Thread David Leimbach
On Wed, Jul 1, 2009 at 10:55 AM, Bryan O'Sullivan b...@serpentine.comwrote: On Wed, Jul 1, 2009 at 3:38 AM, Duncan Coutts duncan.cou...@worc.ox.ac.uk wrote: I agree, if we can't use ++ then is the next best thing. Okay, here's a tentative plan that will help to figure out the answer.

Re: [Haskell-cafe] Leksah works!

2009-06-30 Thread David Leimbach
I would love to have a standalone Mac OS X compatible build to try. As it stands, I have not been successful getting a Cocoa/Carbon GTK running on Leopard, and can't afford the time to fight with making it work. I too typically use Emacs, but also like to use Yi once in a while as well. Dave On

Re: [Haskell-cafe] Monoid wants a (++) equivalent

2009-06-30 Thread David Leimbach
On Tue, Jun 30, 2009 at 10:04 AM, Bryan O'Sullivan b...@serpentine.comwrote: On Tue, Jun 30, 2009 at 9:50 AM, David Leimbach leim...@gmail.com wrote: I actually worry that this will make people think, more incorrectly, that Monoids are about appending stuff only. I think that adding

Re: [Haskell-cafe] Monoid wants a (++) equivalent

2009-06-30 Thread David Leimbach
On Tue, Jun 30, 2009 at 11:54 AM, Brent Yorgey byor...@seas.upenn.eduwrote: On Tue, Jun 30, 2009 at 09:45:45AM -0700, Bryan O'Sullivan wrote: I've thought for a while that it would be very nice indeed if the Monoid class had a more concise operator for infix appending than a `mappend` b.

Re: [Haskell-cafe] Haskell on JVM

2009-06-26 Thread David Leimbach
There has been a scheme with tail recursion on the JVM for a long time IIRC. SISC right? At least I am fairly certain it does. On Friday, June 26, 2009, Timo B. Hübel t...@gmx.info wrote: Incidentally, I am looking for someone well versed in the JVM who wants to help spearhead a JVM back end

Re: [Haskell-cafe] Haskell on JVM

2009-06-26 Thread David Leimbach
On Fri, Jun 26, 2009 at 7:12 AM, David Leimbach leim...@gmail.com wrote: There has been a scheme with tail recursion on the JVM for a long time IIRC. SISC right? Ah SISC is interpreted. Clojure is compiled. At least that may be the key difference to making it work or not. At least I am

Re: [Haskell-cafe] Convert IO Int to Int

2009-06-10 Thread David Leimbach
This stuff is tricky for most newcomers I suspect (it was for me) x - randomRIO(1,10) is temporarilly pulling the Integer you've named x out of the IO Integer it came from. You can think of the console as being an input/output stream inside the IO monad, which is why it is allowed there. The

[Haskell-cafe] Success and one last issue with Data.Binary

2009-06-02 Thread David Leimbach
I've got the following printHex string as a response from a 9P server running on the Inferno Operating System. (thanks to a friendly mailing list contributor who sent a nice example of using Data.Binary) 13006500040600395032303030 This is a little endian encoded ByteString with the

Re: [Haskell-cafe] Success and one last issue with Data.Binary

2009-06-02 Thread David Leimbach
The thing is I have 19 bytes in the hex string I provided: 13006500040600395032303030 That's 38 characters or 19 bytes. The last 4 are 9P2000 1300 = 4 bytes for 32bit message payload, This is little endian for 19 bytes total. 65 = 1 byte for message type. 65 is Rversion or

Re: [Haskell-cafe] Success and one last issue with Data.Binary

2009-06-02 Thread David Leimbach
On Tue, Jun 2, 2009 at 10:24 AM, Thomas DuBuisson thomas.dubuis...@gmail.com wrote: I think getRemainingLazyByteString expects at least one byte No, it works with an empty bytestring. Or, my tests do with binary 0.5.0.1. The specific error means you are requiring more data than providing.

Re: [Haskell-cafe] Success and one last issue with Data.Binary

2009-06-02 Thread David Leimbach
PM, David Leimbach leim...@gmail.com wrote: The thing is I have 19 bytes in the hex string I provided: 13006500040600395032303030 That's 38 characters or 19 bytes. The last 4 are 9P2000 1300 = 4 bytes for 32bit message payload, This is little endian for 19 bytes total

Re: [Haskell-cafe] Success and one last issue with Data.Binary

2009-06-02 Thread David Leimbach
/archive/binary/0.5.0.1/doc/html/Data-Binary-Get.html#v%3Aremaining On Tue, Jun 2, 2009 at 4:28 PM, David Leimbach leim...@gmail.com wrote: On Tue, Jun 2, 2009 at 10:24 AM, Thomas DuBuisson thomas.dubuis...@gmail.com wrote: I think getRemainingLazyByteString expects at least one byte

Re: [Haskell-cafe] Success and one last issue with Data.Binary

2009-06-02 Thread David Leimbach
delete the other guarded branch of that function, it still fails saying I'm asking for the 20th byte. Dave On Tue, Jun 2, 2009 at 4:31 PM, David Leimbach leim...@gmail.com wrote: On Tue, Jun 2, 2009 at 1:28 PM, John Van Enk vane...@gmail.com wrote: I think Thomas' point was that some other

Re: [Haskell-cafe] Success and one last issue with Data.Binary

2009-06-02 Thread David Leimbach
0.5.0.1 On Tue, Jun 2, 2009 at 1:56 PM, John Van Enk vane...@gmail.com wrote: Just so we know that it's not the issue, what version of binary are you using? The most current one is 0.5.0.1. On Tue, Jun 2, 2009 at 4:46 PM, David Leimbach leim...@gmail.com wrote: On Tue, Jun 2, 2009 at 1

Re: [Haskell-cafe] Success and one last issue with Data.Binary

2009-06-02 Thread David Leimbach
, 0x30 , 0x30 , 0x30 ] On Tue, Jun 2, 2009 at 1:31 PM, David Leimbach leim...@gmail.com wrote: On Tue, Jun 2, 2009 at 1:28 PM, John Van Enk vane...@gmail.com wrote: I think Thomas' point was that some other branch in `getSpecific' is running. Is there a chance we can see

Re: [Haskell-cafe] Success and one last issue with Data.Binary

2009-06-02 Thread David Leimbach
On Tue, Jun 2, 2009 at 2:07 PM, David Leimbach leim...@gmail.com wrote: On Tue, Jun 2, 2009 at 1:56 PM, Thomas DuBuisson thomas.dubuis...@gmail.com wrote: Again, I can't reproduce your problem. Are you getting data through some previous Binary instance before calling the routines you

Re: [Haskell-cafe] Data.Binary and little endian encoding

2009-05-28 Thread David Leimbach
On Thu, May 28, 2009 at 5:42 AM, Khudyakov Alexey alexey.sklad...@gmail.com wrote: On Thursday 28 of May 2009 07:52:56 David Leimbach wrote: Sorry took so long to get back... Thank you for the response. Been really busy lately :-) There are also a lot of 9P implementations in many

[Haskell-cafe] Re: Data.Binary and little endian encoding

2009-05-28 Thread David Leimbach
On Thursday, May 28, 2009, Don Stewart d...@galois.com wrote: leimy2k: I'm also trying to figure out how bad/good Haskell Binary IO really is that it's been addressed a few times differently :-) FWIW Binary IO as implemented in Data.Binary is widely used in our production systems at Galois.

Re: [Haskell-cafe] Re: Data.Binary and little endian encoding

2009-05-28 Thread David Leimbach
On Thu, May 28, 2009 at 9:17 AM, John Van Enk vane...@gmail.com wrote: Fair enough. I am just new to the interface, wondering if I should try matching responses by pulling apart via Get, or the bit syntax package. I'm assming you have some 'data Foo = ...'? If this is the case, you're

Re: [Haskell-cafe] Re: Data.Binary and little endian encoding

2009-05-28 Thread David Leimbach
everything at once (till now), thank you for your most detailed example! This should be wiki'd. Dave On Thu, May 28, 2009 at 12:35 PM, David Leimbach leim...@gmail.comwrote: On Thu, May 28, 2009 at 9:17 AM, John Van Enk vane...@gmail.comwrote: Fair enough. I am just new to the interface

[Haskell-cafe] Facebook puzzles allow for GHC solutions

2009-05-27 Thread David Leimbach
Interesting: http://www.facebook.com/careers/puzzles.php So they use Haskell at Facebook? Dave ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Facebook puzzles allow for GHC solutions

2009-05-27 Thread David Leimbach
On Wed, May 27, 2009 at 9:34 AM, Mattias Bengtsson moonl...@dtek.chalmers.se wrote: On Wed, 2009-05-27 at 08:20 -0700, David Leimbach wrote: Interesting: http://www.facebook.com/careers/puzzles.php So they use Haskell at Facebook? They could very well be having ghc installed

Re: [Haskell-cafe] What's the problem with iota's type signature?

2009-05-27 Thread David Leimbach
On Wed, May 27, 2009 at 7:33 PM, michael rice nowg...@yahoo.com wrote: Still exploring monads. I don't understand why the type signature for double is OK, but not the one for iota. Michael = --double :: (Int a) = a - Maybe b --double x = Just (x + x) iota :: (Int a) = a

Re: [Haskell-cafe] Data.Binary and little endian encoding

2009-05-27 Thread David Leimbach
Sorry took so long to get back... Thank you for the response. Been really busy lately :-) On Sat, May 16, 2009 at 3:46 AM, Khudyakov Alexey alexey.sklad...@gmail.com wrote: On Friday 15 May 2009 06:52:29 David Leimbach wrote: I actually need little endian encoding... wondering if anyone

[Haskell-cafe] Question about IO, interact functions,

2009-05-19 Thread David Leimbach
main = interact (unlines . lines) This *appears* to somewhat reliably get me functionality that looks like take a line of input, and print it out. Is this behavior something I can rely on working? I like the idea that lines can pull lines lazily from getContents which lazily consume the input.

Re: [Haskell-cafe] Haskell in 3 Slides

2009-05-18 Thread David Leimbach
Use an incredibly small font. On Mon, May 18, 2009 at 8:16 AM, John Van Enk vane...@gmail.com wrote: Hi all, I'm giving a presentation to an IEEE group on Embedded DSL's and Haskell at the end of June. I need a 3 to 4 slide introduction to Haskell. What suggestions does the community have?

Re: [Haskell-cafe] Re: Data.Binary and little endian encoding

2009-05-15 Thread David Leimbach
This approach looks like it'd work just fine. On Fri, May 15, 2009 at 2:16 AM, John Lato jwl...@gmail.com wrote: leimy2k: On Thu, May 14, 2009 at 8:46 PM, Don Stewart d...@galois.com wrote: leimy2k: On Thu, May 14, 2009 at 8:40 PM, Don Stewart d...@galois.com wrote:

[Haskell-cafe] Don't play with your monads...

2009-05-15 Thread David Leimbach
eventually you'll go bind. Sorry couldn't resist. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Data.Binary and little endian encoding

2009-05-14 Thread David Leimbach
I actually need little endian encoding... wondering if anyone else hit this with Data.Binary. (because I'm working with Bell Lab's 9P protocol which does encode things on the network in little-endian order). Anyone got some tricks for this? Dave ___

Re: [Haskell-cafe] Data.Binary and little endian encoding

2009-05-14 Thread David Leimbach
On Thu, May 14, 2009 at 8:40 PM, Don Stewart d...@galois.com wrote: leimy2k: I actually need little endian encoding... wondering if anyone else hit this with Data.Binary. (because I'm working with Bell Lab's 9P protocol which does encode things on the network in little-endian order).

Re: [Haskell-cafe] Data.Binary and little endian encoding

2009-05-14 Thread David Leimbach
On Thu, May 14, 2009 at 8:46 PM, Don Stewart d...@galois.com wrote: leimy2k: On Thu, May 14, 2009 at 8:40 PM, Don Stewart d...@galois.com wrote: leimy2k: I actually need little endian encoding... wondering if anyone else hit this with Data.Binary. (because I'm

Re: [Haskell-cafe] Data.Binary and little endian encoding

2009-05-14 Thread David Leimbach
On Thu, May 14, 2009 at 8:54 PM, Don Stewart d...@galois.com wrote: I'm speaking specifically of the encode/decode functions. I have no idea how they're implemented. Are you saying that encode is doing something really simple and the default encodings for things just happen to be big

Re: [Haskell-cafe] Data.Binary and little endian encoding

2009-05-14 Thread David Leimbach
On Thu, May 14, 2009 at 8:57 PM, David Leimbach leim...@gmail.com wrote: On Thu, May 14, 2009 at 8:54 PM, Don Stewart d...@galois.com wrote: I'm speaking specifically of the encode/decode functions. I have no idea how they're implemented. Are you saying that encode is doing

Re: [Haskell-cafe] Data.Binary and little endian encoding

2009-05-14 Thread David Leimbach
On Thu, May 14, 2009 at 9:10 PM, David Leimbach leim...@gmail.com wrote: On Thu, May 14, 2009 at 8:57 PM, David Leimbach leim...@gmail.com wrote: On Thu, May 14, 2009 at 8:54 PM, Don Stewart d...@galois.com wrote: I'm speaking specifically of the encode/decode functions. I have

Re: [Haskell-cafe] Removing mtl from the Haskell Platform

2009-05-13 Thread David Leimbach
Nothing controversial said here... I'm just agreeing with Russel. On Tue, May 12, 2009 at 4:03 PM, rocon...@theorem.ca wrote: I wanted to pass this idea around the cafe to get some thoughts before submitting a trac on this topic. I'd like to see the mtl removed from the Haskell Platform.

Re: [Haskell-cafe] Using Takusen is a real intellectual challenge

2009-05-04 Thread David Leimbach
O-kay? On Mon, May 4, 2009 at 5:00 PM, Gü?nther Schmidt gue.schm...@web.de wrote: Hi, well I'm *trying* to use Takusen to export from one database into the other. I'm using Takusen for this so that I can guarantee that during the export not a single huge result is assembled

[Haskell-cafe] Binary I/O options

2009-04-24 Thread David Leimbach
I see that there are a few approaches to doing Binary I/O with Haskell, and the one I'm currently looking at using is Data.Binary from Hackage. I was just wondering what folks were choosing for building networked applications and doing Binary I/O. The approach I was about to take was to use

Re: [Haskell-cafe] Binary I/O options

2009-04-24 Thread David Leimbach
needs thus far. On Fri, Apr 24, 2009 at 10:15 AM, David Leimbach leim...@gmail.comwrote: I see that there are a few approaches to doing Binary I/O with Haskell, and the one I'm currently looking at using is Data.Binary from Hackage. I was just wondering what folks were choosing for building

Re: [Haskell-cafe] Binary I/O options

2009-04-24 Thread David Leimbach
-bytestring Regards Christopher Skrzętnicki On Fri, Apr 24, 2009 at 16:20, David Leimbach leim...@gmail.com wrote: Sounds like the endorsement I was looking for :-) On Fri, Apr 24, 2009 at 7:18 AM, John Van Enk vane...@gmail.com wrote: I use Data.Binary to encode/decode all messages

Re: [Haskell-cafe] OT: Good Linux distro for netbook + Haskell?

2009-04-24 Thread David Leimbach
Arch is really small. I run it in VMs because it gives me what I need (the ability to compile linux Haskell binaries), plus our very own Don Stewart (hope he doesn't mind if I claim him...) does a lot of Arch stuff making the GHC experience awfully nice :-) Dave On Fri, Apr 24, 2009 at 1:43 PM,

Re: [Haskell-cafe] Re: Is 78 characters still a good option? Was: breaking too long lines

2009-04-22 Thread David Leimbach
I've found that some developers have very poor taste in shirts as well, therefore Haskell should have a dress code Sorry I'm not buying 80 characters as a way to address bad eyesight. ;-) I think there's supposed to be technology in the editors to deal with that... just as we can try to find

Re: [Haskell-cafe] Re: ANNOUNCE: Utrecht Haskell Compiler (UHC) -- first release

2009-04-22 Thread David Leimbach
On Wed, Apr 22, 2009 at 10:19 AM, Jason Dusek jason.du...@gmail.com wrote: 2009/04/22 Miguel Mitrofanov miguelim...@yandex.ru: It's arrogant and disrespectful on the part of the implementors to say that they know better than the committee what features should be part of the language.

Re: [Haskell-cafe] Re: ANNOUNCE: Utrecht Haskell Compiler (UHC) -- first release

2009-04-20 Thread David Leimbach
Just refuse to use UHC until it conforms. One can refuse to use GHC libraries that use extensions as well for similar reasons. I always think twice when I see something that isn't Haskell 98 in my stack. Anything that doesn't conform completely to Haskell 98 can effectively be considered not

Re: [Haskell-cafe] Re: ANNOUNCE: Utrecht Haskell Compiler (UHC) -- first release

2009-04-20 Thread David Leimbach
On Mon, Apr 20, 2009 at 8:19 AM, Martijn van Steenbergen mart...@van.steenbergen.nl wrote: David Leimbach wrote: Just refuse to use UHC until it conforms. One can refuse to use GHC libraries that use extensions as well for similar reasons. I always think twice when I see something

Re: [Haskell-cafe] Re: ANNOUNCE: Utrecht Haskell Compiler (UHC) -- first release

2009-04-20 Thread David Leimbach
On Mon, Apr 20, 2009 at 8:38 AM, Malcolm Wallace malcolm.wall...@cs.york.ac.uk wrote: Just refuse to use UHC until it conforms. Do you not use Hugs for the same reason? Not to mention that GHC does not comply with the H'98 standard either:

Re: [Haskell-cafe] Re: Best text editor

2009-04-16 Thread David Leimbach
On Thu, Apr 16, 2009 at 1:32 PM, Nicolas Pouillard nicolas.pouill...@gmail.com wrote: Excerpts from Toby Hutton's message of Wed Apr 15 05:00:16 +0200 2009: On Wed, Apr 15, 2009 at 8:57 AM, Jeff Wheeler j...@nokrev.com wrote: As one of the Yi developers, I'd love to hear some more

Re: [Haskell] Marketing Haskell

2009-04-01 Thread David Leimbach
Nice... I'm glad Microsoft sees the logic in supporting Haskell beyond just researchy stuff (which is also very important!!!) 2009/4/1 Simon Peyton-Jones simo...@microsoft.com Dear Haskell enthusiasts, Now that the logo issue finally has been settled, it is time to select the proper Haskell

Re: [Haskell] Marketing Haskell

2009-04-01 Thread David Leimbach
Oh just looked at the date stamps here nice one. Perhaps I should have a coffee now rather than later as I'm not fully awake. On Wed, Apr 1, 2009 at 7:51 AM, David Leimbach leim...@gmail.com wrote: Nice... I'm glad Microsoft sees the logic in supporting Haskell beyond just researchy stuff

Re: [Haskell] ANNOUNCE: GHC version 6.10.2

2009-04-01 Thread David Leimbach
April fools? On Wed, Apr 1, 2009 at 1:21 PM, Ian Lynagh ig...@earth.li wrote: == The (Interactive) Glasgow Haskell Compiler -- version 6.10.2 == The GHC Team is

Re: [Haskell-cafe] Unique monad?

2009-03-30 Thread David Leimbach
On Mon, Mar 30, 2009 at 12:40 PM, Jeremy Shaw jer...@n-heptane.com wrote: At Mon, 30 Mar 2009 20:29:14 +0100, Andrew Coppin wrote: Maybe I'm just being blind here, but I don't see a monad transformer (or even a monad) in the standard libraries for producing unique values. Have I missed

Re: [Haskell-cafe] Re: Hugs on iPhone

2009-03-24 Thread David Leimbach
2009/3/24 Rick R rick.richard...@gmail.com Correct. My point was only in the case that it would need to statically link to a GPL'd lib (which I'm not sure if such a case exists) If the gcc license suddenly decided to claim compiled items as derivative works, the IT world as we know it would

Re: [Haskell-cafe] Hugs on iPhone

2009-03-23 Thread David Leimbach
On Mon, Mar 23, 2009 at 11:22 AM, Miguel Mitrofanov miguelim...@yandex.ruwrote: 1) You'll need a terminal application first, and I'm not sure if there is one in AppStore. In fact, I AM sure there isn't. There's SSH terminal programs like Putty based stuff that are in the AppStore. So that

Re: [Haskell-cafe] Hugs on iPhone

2009-03-23 Thread David Leimbach
On Mon, Mar 23, 2009 at 11:46 AM, Miguel Mitrofanov miguelim...@yandex.ruwrote: On 23 Mar 2009, at 21:38, David Leimbach wrote: On Mon, Mar 23, 2009 at 11:22 AM, Miguel Mitrofanov miguelim...@yandex.ru wrote: 1) You'll need a terminal application first, and I'm not sure if there is one

Re: [Haskell-cafe] Hugs on iPhone

2009-03-23 Thread David Leimbach
at 2:46 PM, Miguel Mitrofanov miguelim...@yandex.ruwrote: On 23 Mar 2009, at 21:38, David Leimbach wrote: On Mon, Mar 23, 2009 at 11:22 AM, Miguel Mitrofanov miguelim...@yandex.ru wrote: 1) You'll need a terminal application first, and I'm not sure if there is one in AppStore. In fact, I

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread David Leimbach
On Fri, Mar 20, 2009 at 11:06 AM, Don Stewart d...@galois.com wrote: martijn: Don Stewart wrote: Yes, anything that is relevant to the development experience on this platform. Remember: it is more than just getting ghc. How do they get hold of new libraries and apps? Is cabal-install

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread David Leimbach
On Fri, Mar 20, 2009 at 1:05 PM, David Leimbach leim...@gmail.com wrote: On Fri, Mar 20, 2009 at 11:06 AM, Don Stewart d...@galois.com wrote: martijn: Don Stewart wrote: Yes, anything that is relevant to the development experience on this platform. Remember: it is more than just

Re: [Haskell-cafe] libgmp for GHC 6.10.1 on Mac OS X 10.5

2009-03-18 Thread David Leimbach
for me, due to the problems of GMP being statically linked. Dave On Tue, Mar 17, 2009 at 8:56 PM, David Leimbach leim...@gmail.com wrote: Did you get past this point? I'm hitting: == make way=dyn -f GNUmakefile all; /Users/dave/Downloads/ghc-6.10.1/ghc/stage1-inplace/ghc -package-name ghc

Re: [Haskell-cafe] libgmp for GHC 6.10.1 on Mac OS X 10.5

2009-03-17 Thread David Leimbach
Did you get past this point? I'm hitting: == make way=dyn -f GNUmakefile all; /Users/dave/Downloads/ghc-6.10.1/ghc/stage1-inplace/ghc -package-name ghc-prim-0.1.0.0 -hide-all-packages -no-user-package-conf -split-objs -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build

Re: [Haskell-cafe] Re: MPI

2009-03-06 Thread David Leimbach
2009/3/6 Bryan O'Sullivan b...@serpentine.com On Thu, Mar 5, 2009 at 10:43 AM, FFT fft1...@gmail.com wrote: Are MPI bindings still the best way of using Haskell on Beowulf clusters? It's my feeling that the bindings stagnated, or are they just very mature? MPI itself hasn't changed in

Re: [Haskell-cafe] Status of Haskell under OsX

2009-02-27 Thread David Leimbach
On Fri, Feb 27, 2009 at 12:04 AM, Thomas Davie tom.da...@gmail.com wrote: On 27 Feb 2009, at 08:17, Arne Dehli Halvorsen wrote: Manuel M T Chakravarty wrote: I'm planning to purchase a MacBookPro so I'm wondering how well Haskell is supported under this platform. At least two of the

Re: [Haskell-cafe] Performance question

2009-02-26 Thread David Leimbach
How about an FFI call to rand() and then measure the performance On Thu, Feb 26, 2009 at 3:37 AM, Felipe Lessa felipe.le...@gmail.comwrote: On Thu, Feb 26, 2009 at 7:56 AM, Eugene Kirpichov ekirpic...@gmail.com wrote: Here is a variant that uses mersenne-random-pure64 and works less than

Re: [Haskell-cafe] speed: ghc vs gcc

2009-02-20 Thread David Leimbach
On Fri, Feb 20, 2009 at 6:39 AM, Dan Doel dan.d...@gmail.com wrote: Sorry for replying to myself, but I got suspicious about the 6ms runtime of the 64-bit C++ code on my machine. So I looked at the assembly and found this: .LCFI1: movabsq $45, %rsi

Re: [Haskell-cafe] GMP on Mac OS X linked statically by default

2009-02-11 Thread David Leimbach
Thanks Don! On Tue, Feb 10, 2009 at 10:29 PM, Don Stewart d...@galois.com wrote: leimy2k: Was there a reason for this? If so, it'd be nice if the package that was build explained why... otherwise it feels kind of arbitrary, and would be nice if there was documentation available to make

Re: [Haskell-cafe] Re: [Haskell] Google Summer of Code 2009

2009-02-10 Thread David Leimbach
SNMP would be really cool. So far the best implementation of SNMP I've had the pleasure to work with is part of the Erlang OTP distribution, and being able to compete with Erlang on that level would be really nice. On Tue, Feb 10, 2009 at 7:18 AM, Jamie hask...@datakids.org wrote: What I would

[Haskell-cafe] GMP on Mac OS X linked statically by default

2009-02-10 Thread David Leimbach
Was there a reason for this? If so, it'd be nice if the package that was build explained why... otherwise it feels kind of arbitrary, and would be nice if there was documentation available to make it link dynamically in case someone didn't want to LGPL their program. Anyone know the steps to make

Re: [Haskell-cafe] Monad explanation

2009-02-05 Thread David Leimbach
2009/2/5 Gregg Reynolds d...@mobileink.com On Wed, Feb 4, 2009 at 8:18 PM, Richard O'Keefe o...@cs.otago.ac.nz wrote: On 5 Feb 2009, at 10:20 am, Gregg Reynolds wrote: That's a fairly common representation, seems to work for lots of people, but it caused me no end of trouble. Values are

Re: [Haskell-cafe] Monad explanation

2009-02-05 Thread David Leimbach
On Thu, Feb 5, 2009 at 11:25 AM, Andrew Wagner wagner.and...@gmail.comwrote: I think the point of the Monad is that it works as a container of stuff, that still allows mathematically pure things to happen, while possibly having some opaque other stuff going on. This at least sounds, very

Re: [Haskell-cafe] Monad explanation

2009-02-05 Thread David Leimbach
On Thu, Feb 5, 2009 at 12:25 PM, Andrew Wagner wagner.and...@gmail.comwrote: On Thu, Feb 5, 2009 at 3:21 PM, David Leimbach leim...@gmail.com wrote: Well all I can tell you is that I can have (IO Int) in a function as a return, and the function is not idempotent in terms of the stuff inside

Re: [Haskell-cafe] Monad explanation

2009-02-05 Thread David Leimbach
On Thu, Feb 5, 2009 at 12:27 PM, Jonathan Cast jonathancc...@fastmail.fmwrote: On Thu, 2009-02-05 at 12:21 -0800, David Leimbach wrote: On Thu, Feb 5, 2009 at 11:25 AM, Andrew Wagner wagner.and...@gmail.com wrote: I think the point of the Monad

Re: [Haskell-cafe] Monad explanation

2009-02-05 Thread David Leimbach
On Thu, Feb 5, 2009 at 2:38 PM, Jonathan Cast jonathancc...@fastmail.fmwrote: On Thu, 2009-02-05 at 13:01 -0800, David Leimbach wrote: On Thu, Feb 5, 2009 at 12:27 PM, Jonathan Cast jonathancc...@fastmail.fm wrote: On Thu, 2009-02-05 at 12:21 -0800, David Leimbach wrote

Re: [Haskell-cafe] A ghc-6.10.1 bug or a feature?

2009-01-28 Thread David Leimbach
On Wed, Jan 28, 2009 at 7:56 AM, Juraj Hercek juhe_hask...@hck.sk wrote: Hello people, I've recently tried this: $ uname -smpr Linux 2.6.28-ARCH x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz $ ghci GHCi, version 6.10.1: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ...

Re: [Haskell-cafe] Re: Why monoids will abide...

2009-01-21 Thread David Leimbach
You mean monoids right? :-) On Wed, Jan 21, 2009 at 1:30 AM, Eugene Kirpichov ekirpic...@gmail.comwrote: Wow. This is a cool point of view on monads, thank you for enlightening (the arrow stuff is yet too difficult for me to understand)! 2009/1/21 Andrzej Jaworski hims...@poczta.nom.pl:

<    1   2   3   >