Re: [Haskell-cafe] Best Linux Distro for =

2011-06-18 Thread Sean Perry
On Jun 18, 2011, at 8:48 PM, Tom Murphy wrote: Hi List, If my choice of Lunix distro depended 100% on its solidness as a Haskell devel platform (I am), what would you all recommend? If you are going to install the haskell platform and then use Cabal it really does not matter. Any of the

Re: [Haskell-cafe] How do you test a parser?

2011-06-11 Thread Sean Perry
Choices, choices. The first one is to use unit tests. Look at the grammar and make sure the obvious stuff fails or succeeds. a + b, a :+ b, etc. You can do this at the Haskell level with parser objects. Next you can write small samples to test things the unit tests did not. Compare the output

Re: [Haskell-cafe] trying to cabal install lambdabot, failure on 'random' package

2011-05-09 Thread Sean Perry
On May 8, 2011, at 3:34 PM, Albert Y. C. Lai wrote: On 11-05-08 03:24 AM, Sean Perry wrote: package random-1.0.0.3 requires time-1.2.0.3 package random-1.0.0.3 requires time-1.2.0.4 In addition to unregistering --user random-1.0.0.3, also unregister --user time-1.2.0.4, the real culprit

Re: [Haskell-cafe] trying to cabal install lambdabot, failure on 'random' package

2011-05-08 Thread Sean Perry
On May 7, 2011, at 12:41 AM, Stephen Tetley wrote: show is the failing package A look on Hackage suggests that show had problems with its cabal file at versions 0.4 0.4.1 and was fixed at 0.4.1.1. Can you try installing show individually at 0.4.1.1 the try installing the rest of

[Haskell-cafe] trying to cabal install lambdabot, failure on 'random' package

2011-05-07 Thread Sean Perry
/usr/bin/ghc --make -package-name show-0.4.1.1 -hide-all-packages -fbuilding-cabal-package -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package-id

Re: [Haskell-cafe] Getting started

2010-07-01 Thread Sean Perry
If you have not read it yet give http://learnyouahaskell.com a look. Towards the end he walks through some of these kind of design issues starting with types and functions working on the types. Also, try putting the types and functions in a file and then loading the file in ghci with ghci foo.hs.

Re: [Haskell-cafe] Best practices for modular programming in Haskell

2005-03-16 Thread Sean Perry
Benjamin Pierce wrote: Other people seem to rely on Haddock to generate interfaces as documentation. This is nicer in many ways (e.g., it solves the above problem because Haddock elides the right-hand side of a data or newtype declaration if the constructors are not exported by the module), but

Re: [Haskell-cafe] Re: Solution to Thompson's Exercise 4.4

2005-03-13 Thread Sean Perry
Michael Vanier wrote: Date: Sat, 12 Mar 2005 23:39:21 -0800 From: Sean Perry [EMAIL PROTECTED] Cc: Haskell-Cafe@haskell.org As an aside, I kept all of the exercises in revision control. So I can look back at what I first wrote and my later changes. A habit I plan to keep as I move on to other

Re: [Haskell-cafe] Solution to Thompson's Exercise 4.4

2005-03-12 Thread Sean Perry
Andy Georges wrote: Hi Kaoru, I have been working through the exercises in Thompson's The Craft of Functional Programming 2nd Ed book. I am looking for a solution web site for Thompson's book. Or maybe the people here can help. In exercise 4.4, I am asked to define a function howManyOfFourEqual

Re: [Haskell-cafe] Re: Solution to Thompson's Exercise 4.4

2005-03-12 Thread Sean Perry
Kaoru Hosokawa wrote: Thanks to all the replies! It seems that there are ways to solve the exercise if I use constructs that are found in later chapters of the book. Sean could be right in that some of the exercises are meant to be difficult to solve and they prepare you for later chapters. As a

[Haskell-cafe] new Haskell hacker seeking peer review

2005-02-18 Thread Sean Perry
I am learning Haskell, so I decided to implement everyone's favorite, overused Unix command -- cat. Below is my simple implementation, comments about style, implementation, etc. are welcomed. In particular, is my untilEOF idiomatically ok? Is there a better way to accomplish this? Also, while

[Haskell-cafe] new Haskell hacker seeking peer review

2005-02-18 Thread Sean Perry
I am learning Haskell, so I decided to implement everyone's favorite, overused Unix command -- cat. Below is my simple implementation, comments about style, implementation, etc. are welcomed. In particular, is my untilEOF idiomatically ok? Is there a better way to accomplish this? Also, while

Re: [Haskell-cafe] Re: humor

2004-07-30 Thread Sean Perry
Jon Cast wrote: Obviously you haven't realized the great beauty of $. You cannot like $ to much. foldr should be defined as follows: foldr f z [] = id $ z foldr f z (x:xn) = (f $ x) $ foldr f z xn etc. :) Am I to assume there is some sarcasm here? Hope so (-: (Sorry, still new to the list,