Re: [Haskell-cafe] Literate Haskell

2005-02-22 Thread Jesper Louis Andersen
Quoting Jérémy Bobbio ([EMAIL PROTECTED]): I really see Literate Haskell and Haddock as two orthogonal tools, and that help me to focus when writing docs. It impresses me SO much that the COMPUTER SCIENTIST have found a WAY to ELEVATE mere tools likke Haddock and Literate Haskell as elements

Re: [Haskell-cafe] Re: New to haskell: unresolved overloading question

2005-02-22 Thread Christian Maeder
Keean Schupke wrote: There are problems with this approach... instance (Ord a, Num a) = ApproxEq a where x ~= y = (abs (x-y) 1) However it should do what you want with just -foverlapping-instances -fundecidable-instances. Only -fallow-incoherent-instances allowes to resolve 3.5 ~= 2.6

[Haskell-cafe] Re: New to haskell: unresolved overloading question

2005-02-22 Thread Christian Maeder
Tomasz Zielonka wrote: Why not forget about ApproxEq for () and Bool and simply define a function? (~=) :: (Ord a, Num a) = a - a - Bool x ~= y = abs (x-y) 1 Indeed, this works best. The instance for lists is also not too important. Christian ___

Re: [Haskell-cafe] Re: New to haskell: unresolved overloading question

2005-02-22 Thread Daniel Fischer
Am Dienstag, 22. Februar 2005 00:34 schrieb Daniel Fischer: snip That's a very common problem for newbies, so don't panic. In older versions of hugs (November 2002, e.g.), you would have got an unresolved overloading also from entering [] to the prompt (this is no longer so). If such things

RE: [Haskell-cafe] Problems building GreenCard

2005-02-22 Thread Simon Peyton-Jones
-fno-prune-tydecls is a dead flag. Just remove it. Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of | Dmitri Pissarenko | Sent: 15 February 2005 21:04 | To: haskell-cafe@haskell.org | Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] | Subject: Re:

[Haskell-cafe] ANN: HAppS -- Haskell Application Server v 0.2

2005-02-22 Thread S. Alexander Jacobson
HAppS is a Haskell library for building Internet applications, featuring: * HAppS.ACID: Guarantee application integrity in the face of unplanned outages using this module's integrated write-ahead logging and checkpointing framework. * HAppS.DBMS: Do relational operations in Haskell

[Haskell-cafe] WASH defaults in inputFields

2005-02-22 Thread John Goerzen
Hi, Hope this is not a stupid question, but I RTFM'd and couldn't find the answer. I am designing a form that will be used to edit some data that is in the database. I want users to pull up the form and have all the input fields pre-filled with the current state of the database (so they don't

Re: [Haskell-cafe] WASH defaults in inputFields

2005-02-22 Thread Tomasz Zielonka
On Tue, Feb 22, 2005 at 04:48:07PM +, John Goerzen wrote: Hi, Hope this is not a stupid question, but I RTFM'd and couldn't find the answer. I am designing a form that will be used to edit some data that is in the database. I want users to pull up the form and have all the input

Re: [Haskell-cafe] WASH defaults in inputFields

2005-02-22 Thread John Goerzen
On Tue, Feb 22, 2005 at 06:26:29PM +0100, Tomasz Zielonka wrote: i - textInputField (uaVALUE default value uaSIZE 10) or this way if you use CGI, not GuaranteedCGI: Speaking of which, I couldn't find any documentation on GuaranteedCGI at all. What's the difference between it and CGI?

Re: [Haskell-cafe] WASH defaults in inputFields

2005-02-22 Thread John Goerzen
On Tue, Feb 22, 2005 at 01:53:08PM -0500, Jeremy Shaw wrote: For what john asked, I usually do something like: i - textInputField (fieldVALUE the default value) Thanks for all the helpful answers. Sorry it didn't occur to me what this meant at first. It should have :-)

Re: [Haskell-cafe] Re: new Haskell hacker seeking peer review

2005-02-22 Thread Bjorn Bringert
Isaac Jones wrote: John Goerzen [EMAIL PROTECTED] writes: Here's an alternative: module Main where (snip john's version) And what list would be complete without a points-free version. It doesn't operate on stdin, though like John's does: pointsFreeCat :: IO () pointsFreeCat = getArgs = mapM

[Haskell-cafe] module Crypt_Discordian - code critique requested

2005-02-22 Thread Terrence Brannon
Hi, I am getting into Haskell so I decided to convert a Perl module of mine: http://cpan.uwinnipeg.ca/htdocs/Crypt-Discordian/Crypt/Discordian.html into Haskell. I was pleased at the cleanliness and conciseness of the Haskell code. However, I am sure that it can be improved on and am

[Haskell-cafe] GUI components for displaying Html pages

2005-02-22 Thread David Owen
Hi all, I'm looking for a Haskell GUI library which supports the display of rendered Html pages in the same way that web browsers do. I've been getting to grips recently with wxHaskell as it was recommended on haskell-cafe. I was hoping that a special pane component (or something similar)

Re: [Haskell-cafe] GUI components for displaying Html pages

2005-02-22 Thread Lemmih
On Wed, 23 Feb 2005 03:25:47 +, David Owen [EMAIL PROTECTED] wrote: Hi all, I'm looking for a Haskell GUI library which supports the display of rendered Html pages in the same way that web browsers do. I've been getting to grips recently with wxHaskell as it was recommended on

Re: [Haskell-cafe] module Crypt_Discordian - code critique requested

2005-02-22 Thread Arthur van Leeuwen
On Wed, Feb 23, 2005 at 12:27:19AM +, Terrence Brannon wrote: Hi, I am getting into Haskell so I decided to convert a Perl module of mine: http://cpan.uwinnipeg.ca/htdocs/Crypt-Discordian/Crypt/Discordian.html into Haskell. I was pleased at the cleanliness and conciseness of

Re: [Haskell-cafe] module Crypt_Discordian - code critique requested

2005-02-22 Thread Arthur van Leeuwen
On Wed, Feb 23, 2005 at 08:46:23AM +0100, Arthur van Leeuwen wrote: On Wed, Feb 23, 2005 at 12:27:19AM +, Terrence Brannon wrote: [snip, encryptia discordia] How about module CryptDiscordian where import List vowels = aeiouAEIOU isVowel = (flip elem) vowel_list