Re: [Haskell-cafe] How to write Source for TChan working with LC.take?

2012-05-29 Thread Michael Snoyman
OK, after thinking on this for the past week, I've come up with a proposal to make this kind of code easier to write (and more of an explanation on why the behavior was unintuitive in the first place). http://www.yesodweb.com/blog/2012/05/next-conduit-changes Do you think the modified yield/await

Re: [Haskell-cafe] What is the difference between runhaskell and compile?

2012-05-29 Thread Chris Dornan
On 29 May 2012 02:21, Magicloud Magiclouds wrote: > Interesting. I have this code tested in Debian unstable/stable, CentOS > 6.1, all 64 bit, with two different version of libldap2. > At first, Debian-s were installed with 7.4.1, CentOS with 7.2.2. Only > in CentOS the code connected after compile

Re: [Haskell-cafe] What is the difference between runhaskell and compile?

2012-05-29 Thread Chris Dornan
I will send the header and object files off list. Here is the test program I am using: import LDAP main :: IO () main = do putStrLn "domain>" domain <- getLine putStrLn "bindDN>" bindDN <- getLine putStrLn "bindPW>" bindPW <- getLine putStrLn

[Haskell-cafe] ANN: hledger 0.18

2012-05-29 Thread Simon Michael
I'm pleased to announce version 0.18 of hledger! hledger (http://hledger.org) is a haskell library, command-line tool and web application for working with financial data (or anything that can be tracked numerically in an accounting journal). It is inspired by and compatible with John Wiegley's Led

Re: [Haskell-cafe] vector operations

2012-05-29 Thread Evan Laforge
Good question.. I copied both to a file and tried ghc-core, but it inlines big chunks of Data.Vector and I can't read it very well, but it looks like the answer is no, it still builds the the list of sums. I guess the next step is to benchmark and see how busy the gc is on each version. But my imp

Re: [Haskell-cafe] vector operations

2012-05-29 Thread Roman Leshchinskiy
On 29/05/2012, at 19:49, Evan Laforge wrote: > Good question.. I copied both to a file and tried ghc-core, but it > inlines big chunks of Data.Vector and I can't read it very well, but > it looks like the answer is no, it still builds the the list of sums. > I guess the next step is to benchmark a

Re: [Haskell-cafe] vector operations

2012-05-29 Thread Duncan Coutts
On 29 May 2012 11:49, Evan Laforge wrote: > Good question.. I copied both to a file and tried ghc-core, but it > inlines big chunks of Data.Vector and I can't read it very well, but > it looks like the answer is no, it still builds the the list of sums. > I guess the next step is to benchmark and

Re: [Haskell-cafe] A functional programming solution for Mr and Mrs Hollingberry

2012-05-29 Thread Eric Rasmussen
I added a Scala solution since Haskell is already well represented. Regarding exercises that are easier in OO, I don't think you'll find one that a good Haskell programmer can't match in a functional style. But if you make simulation the goal of the exercise (rather than writing a program that tak

Re: [Haskell-cafe] A functional programming solution for Mr and Mrs Hollingberry

2012-05-29 Thread Richard O'Keefe
On 30/05/2012, at 10:16 AM, Eric Rasmussen wrote: > One idea (contrived and silly though it is) is modeling a Courier that > delivers message to Persons. There is a standard default reply for all > Persons, some individuals have their own default reply, and there are > conditional replies based

Re: [Haskell-cafe] What is the difference between runhaskell and compile?

2012-05-29 Thread Magicloud Magiclouds
A little information. I did not notice the gcc/binutils versions. But in CentOS, the ghc 7.2.2/7.4.1 were all compiled myself with all default configurations. On Tue, May 29, 2012 at 10:54 PM, Chris Dornan wrote: > On 29 May 2012 02:21, Magicloud Magiclouds > wrote: >> Interesting. I have this c