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
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
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
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
/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
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.
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
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
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
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
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
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
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,
13 matches
Mail list logo