Re: DoAndIfThenElse

2009-11-27 Thread Christian Maeder
S. Doaitse Swierstra schrieb: [..] >> \begin{code} >> main = do >> if True then putStrLn "1"; >> else putStrLn "2" >> \end{code} >> >> This does also not work with hugs (";" at the end) > > This does not work since now you have two ";"'s; one because you wrote > one and one because you did not i

On the Meaning of Haskell

2009-11-27 Thread John D. Earle
While reading what Cynbe had to say at http://mythryl.org/ concerning the design of his language I came across the following: Simon Peyton-Jones refers to programming under this strict constraint as "wearing the hair shirt". What Simon wrote caused me to reflect on its meaning for a time. I fe

On the Meaning of Haskell 2

2009-11-27 Thread John D. Earle
If computer programs are speech as in a form of literature, the preparation of speech under constraints is poetry. ___ Haskell-prime mailing list Haskell-prime@haskell.org http://www.haskell.org/mailman/listinfo/haskell-prime

Re: On the Meaning of Haskell 2

2009-11-27 Thread Brandon S. Allbery KF8NH
On Nov 27, 2009, at 16:44 , John D. Earle wrote: If computer programs are speech as in a form of literature, the preparation of speech under constraints is poetry. With the appropriate EDSL, that could be literal. (Perl poetry, anyone?) -- brandon s. allbery [solaris,freebsd,perl,pugs,ha