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, A

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

2009-10-26 Thread David Leimbach
On Mon, Oct 26, 2009 at 1:27 PM, Tom Tobin wrote: > On Mon, Oct 26, 2009 at 9:11 AM, David Leimbach 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 the Hellraiser m

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

2009-10-26 Thread David Leimbach
On 10/26/09, David Virebayre wrote: > On Sun, Oct 25, 2009 at 2:09 PM, Curt Sampson > 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 to which Hoogle links. It's worth clicking.

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 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 Control.OldExce

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 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 needs to be pushed.

[Haskell-cafe] Re: Snow Leopard Breaks GHC

2009-08-31 Thread David Leimbach
as > installed there). > > HTH Christian > > > > > Cheers, > > D > > > > > > On 31/08/2009, at 12:06 AM, David Leimbach wrote: > > > >> Well the old binaries for Leopard already work on Snow Leopard. The > >> problem is the

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-30 Thread David Leimbach
e.haskell.org/trac/ghc/wiki/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 wrote: >

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 wrote: > Here - http://hackage.haskell.org/trac/ghc/wiki/Building, but it won't > help, cause you need working ghc to build ghc. > > D > > > On 29/08

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-28 Thread David Leimbach
e is a ticket - http://hackage.haskell.org/trac/ghc/ticket/3400, 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" :-) > &g

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-28 Thread David Leimbach
, 2009, 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 wrote: > >> My 6.10.1 install still works alright after upgrade

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-28 Thread David Leimbach
oss > > 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 li

[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] 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 wrote: > On Aug 27, 2009, at 4:16 PM, Eugene Kirpichov wrote: > > Cool! >> >> However, it does not protect me from doing >>

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-20 Thread David Leimbach
On Thu, Aug 20, 2009 at 2:52 AM, Jules Bean 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. >> making a

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

2009-08-19 Thread David Leimbach
udy, but if I'm lucky I still have 20 to 40 years to go, so I > won't be bored :-) > > > > > On Wed, Aug 19, 2009 at 9:46 PM, David Leimbach wrote: > >> Very cool! >> I am still wondering what the significance of the DList is with this >> though,

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

2009-08-19 Thread David Leimbach
I add a delay to each right argument of >>=, > but > > one could also do it manually > > On Wed, Aug 19, 2009 at 7:37 PM, David Leimbach > wrote: > >> > >> I've corrected it. It still doesn't suffer looping. :-) > >> > >> O

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 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:

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

2009-08-19 Thread David Leimbach
cketPC as G-Pod, and so I would like to make a version in Haskell that > >> runs on the iPhone :-) > >> This of course is a lot of work, and I would like to put this on the > >> Haskell wiki or a blog or something, so others can contribute and > comment. I > >> w

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

2009-08-19 Thread David Leimbach
=30>, >> and so I would like to make a version in Haskell that runs on the iPhone :-) >> >> This of course is a lot of work, and I would like to put this on the >> Haskell wiki or a blog or something, so others can contribute and comment. I >> would like to show real e

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

2009-08-19 Thread David Leimbach
I would like to make a version in Haskell that runs on the iPhone :-) > > This of course is a lot of work, and I would like to put 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 shortcom

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 wrote: > This doesn't seem to be working for me interactively though on a Mac. I > st

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

2009-08-19 Thread David Leimbach
ction so >> that it outputs lines only, then it still prints Welcome first before asking >> for input. >> See e.g. http://hpaste.org/fastcgi/hpaste.fcgi/view?id=8316#a8328 >> >> On Wed, Aug 19, 2009 at 5:00 PM, David Leimbach wrote: >> >>> Try LineBufferin

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

2009-08-19 Thread David Leimbach
asking > 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 wrote

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, s

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 wrote: > 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 our best to add the

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 wrote: > On Wed, Jul 1, 2009 at 3:38 AM, Duncan Coutts > 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. I'll > build a fiddled base package th

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

2009-07-01 Thread David Leimbach
On Wed, Jul 1, 2009 at 5:18 AM, Jules Bean 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 thin

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

2009-06-30 Thread David Leimbach
On Tue, Jun 30, 2009 at 11:54 AM, Brent Yorgey wrote: > 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". > > I wonder if o

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 wrote: > On Tue, Jun 30, 2009 at 9:50 AM, David Leimbach wrote: > >> I actually worry that this will make people think, more incorrectly, that >> Monoids are about appending stuff only. >> > > I think th

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] Haskell on JVM

2009-06-26 Thread David Leimbach
On Fri, Jun 26, 2009 at 7:12 AM, David Leimbach 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 le

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 wrote: >> Incidentally, I am looking for someone well versed in the JVM who wants >> to help spearhead a JVM back end for jhc. >

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. Th

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 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 b

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

2009-06-02 Thread David Leimbach
ssize=ss, > ename=e} > > test = pack > [ 0x13 >, 0x00 >, 0x00 >, 0x00 >, 0x65 >, 0xff >, 0xff >

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 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 wrote: > > > > > > On Tue, J

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

2009-06-02 Thread David Leimbach
. if I 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 wrote: > > > > > > On Tue, Jun 2, 2009 at 1:28 PM, John Van Enk wrote: > >> > >&g

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

2009-06-02 Thread David Leimbach
et.html#v%3AgetBytes > 2. > http://hackage.haskell.org/packages/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 wrote: > > > > > > On Tue, Jun 2, 2009 at 10:24 AM, Thomas DuBuisson > > wrot

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

2009-06-02 Thread David Leimbach
ss, ename=e} > > > On Tue, Jun 2, 2009 at 4:20 PM, David Leimbach 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 > > 13000

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 pro

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

[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] Re: Data.Binary and little endian encoding

2009-05-28 Thread David Leimbach
digest 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 wrote: > >> >> >> On Thu, May 28, 2009 at 9:17 AM, John Van Enk wrote: >> >>> >&g

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 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 > prob

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

2009-05-28 Thread David Leimbach
On Thursday, May 28, 2009, Don Stewart 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. I'd be f

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 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 implementati

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 wrote: > On Friday 15 May 2009 06:52:29 David Leimbach wrote: > > I actually need little endian encoding... wondering if anyone else hit > t

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 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] 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-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

[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 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? Is such a sho

[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

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 wrote: > leimy2k: > > On Thu, May 14, 2009 at 8:46 PM, Don Stewart wrote: > > > >> leimy2k: > >> > > >> > > >> > On Thu, May 14, 2009 at 8:40 PM, Don Stewart wrote: > >> > > >> > leimy2k: > >> > >

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 wrote: > > > On Thu, May 14, 2009 at 8:57 PM, David Leimbach wrote: > >> >> >> On Thu, May 14, 2009 at 8:54 PM, Don Stewart wrote: >> >>> > I'm speaking specifically of the encode/de

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 wrote: > > > On Thu, May 14, 2009 at 8:54 PM, Don Stewart wrote: > >> > I'm speaking specifically of the encode/decode functions. I have no >> idea how >> > they're implemented. >> > &g

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 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 end

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 wrote: > leimy2k: > > > > > > On Thu, May 14, 2009 at 8:40 PM, Don Stewart wrote: > > > > leimy2k: > > > I actually need little endian encoding... wondering if anyone else > hit > > this > > > with Data.Binary. (because I'm working wit

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 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). > > > > An

[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 ___ Ha

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, 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. > > The mtl was a t

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 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 (possibly in memory)

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, M

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

2009-04-24 Thread David Leimbach
k-bytestring > > Regards > > Christopher Skrzętnicki > > > On Fri, Apr 24, 2009 at 16:20, David Leimbach wrote: > >> Sounds like the endorsement I was looking for :-) >> >> >> On Fri, Apr 24, 2009 at 7:18 AM, John Van Enk wrote: >> >>

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 wrote: > >> 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 c

[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 Data.B

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 wrote: > 2009/04/22 Miguel Mitrofanov : > >> 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. > > > > It's arrogant and disrespectfu

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-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: > > > http://www.haskell.org/ghc/docs/lat

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 t

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 Hask

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 wrote: > > > > > > As one of the Yi developers, I'd love to hear some more specific >

Re: [Haskell-cafe] Best text editor

2009-04-13 Thread David Leimbach
On Mon, Apr 13, 2009 at 7:18 PM, FFT wrote: > Has anyone tried Yi? Yes... and I rather like it. > > > On Sun, Apr 12, 2009 at 11:23 PM, Melanie_Green > wrote: > > > > Hi I would like to follow the crowd and find out what text editor > everyone > > uses for haskell on windows. > > > > Thx in

Re: [Haskell-cafe] Unique monad?

2009-03-30 Thread David Leimbach
On Mon, Mar 30, 2009 at 12:40 PM, Jeremy Shaw 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 something

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

2009-03-24 Thread David Leimbach
2009/3/24 Rick R > 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 end. Any linkage to G

Re: [Haskell-cafe] Hugs on iPhone

2009-03-23 Thread David Leimbach
Mar 23, 2009 at 2:46 PM, Miguel Mitrofanov > wrote: > >> >> 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'l

Re: [Haskell-cafe] Hugs on iPhone

2009-03-23 Thread David Leimbach
On Mon, Mar 23, 2009 at 11:46 AM, Miguel Mitrofanov wrote: > > 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 applicatio

Re: [Haskell-cafe] Hugs on iPhone

2009-03-23 Thread David Leimbach
On Mon, Mar 23, 2009 at 11:22 AM, Miguel Mitrofanov wrote: > 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 sort of thing has been

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 wrote: > > > On Fri, Mar 20, 2009 at 11:06 AM, Don Stewart wrote: > >> martijn: >> > Don Stewart wrote: >> >> Yes, anything that is relevant to the development experience on this >> >> platform.

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 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 availab

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

2009-03-18 Thread David Leimbach
lt GHC isn't going to fly for me, due to the problems of GMP being statically linked. Dave On Tue, Mar 17, 2009 at 8:56 PM, David Leimbach 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-

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 -optP

Re: [Haskell-cafe] Re: MPI

2009-03-06 Thread David Leimbach
2009/3/6 Bryan O'Sullivan > On Thu, Mar 5, 2009 at 10:43 AM, FFT 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 14 years, so it's n

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 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 wrote: > On Thu, Feb 26, 2009 at 7:56 AM, Eugene Kirpichov > wrote: > > Here is a variant that uses mersenne-random-pure64 and works less than > > 2x slower than C++: > > And I would li

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

2009-02-20 Thread David Leimbach
On Fri, Feb 20, 2009 at 6:39 AM, Dan Doel 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 >movl$_ZS

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 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 it lin

[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] 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 wrote: > What I would like to see is H.26

Re: [Haskell-cafe] Monad explanation

2009-02-05 Thread David Leimbach
On Thu, Feb 5, 2009 at 2:38 PM, Jonathan Cast wrote: > On Thu, 2009-02-05 at 13:01 -0800, David Leimbach wrote: > > > > > > On Thu, Feb 5, 2009 at 12:27 PM, Jonathan Cast > > wrote: > > > > On Thu, 2009-02-

Re: [Haskell-cafe] Monad explanation

2009-02-05 Thread David Leimbach
On Thu, Feb 5, 2009 at 12:27 PM, Jonathan Cast wrote: > On Thu, 2009-02-05 at 12:21 -0800, David Leimbach wrote: > > > > > > On Thu, Feb 5, 2009 at 11:25 AM, Andrew Wagner > > wrote: > > I think the point of the Monad is that it >

Re: [Haskell-cafe] Monad explanation

2009-02-05 Thread David Leimbach
On Thu, Feb 5, 2009 at 12:25 PM, Andrew Wagner wrote: > On Thu, Feb 5, 2009 at 3:21 PM, David Leimbach 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

Re: [Haskell-cafe] Monad explanation

2009-02-05 Thread David Leimbach
On Thu, Feb 5, 2009 at 11:25 AM, Andrew Wagner wrote: > 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 wrong, eve

Re: [Haskell-cafe] Monad explanation

2009-02-05 Thread David Leimbach
2009/2/5 Gregg Reynolds > On Wed, Feb 4, 2009 at 8:18 PM, Richard O'Keefe 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 mathematical objects; how

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 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 ... linking ..

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

2009-01-21 Thread David Leimbach
Oh indeed! On Wed, Jan 21, 2009 at 8:00 AM, Eugene Kirpichov wrote: > No, I mean monads :) I've never thought of them as of monoids in the > endofunctor category. > > 2009/1/21 David Leimbach : > > You mean monoids right? :-) > > > > On Wed, Jan 21, 2009 at 1

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 wrote: > 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 : > > Monads are monoids in categories of

Re: [Haskell-cafe] Employment

2009-01-19 Thread David Leimbach
On Mon, Jan 19, 2009 at 11:34 AM, Andrew Coppin wrote: > Is it possible to earn money using Haskell? Does anybody here actually do > this? > > Inquiring minds want to know... ;-) > I'm using it at work in simulations... not shipping anything with it yet, but we do ship Erlang :-) Haskell may wo

Re: [Haskell-cafe] Functors [Comments from OCaml Hacker Brian Hurt]

2009-01-18 Thread David Leimbach
On Sun, Jan 18, 2009 at 3:23 AM, Andrew Coppin wrote: > Jonathan Cast wrote: > >> On Sat, 2009-01-17 at 12:04 +, Andrew Coppin wrote: >> >> >>> >>> instance (Monad m) => Functor m where fmap f ma = do a <- ma; return (f a) >>> While that's quite interesting from a mathematical

<    1   2   3   >