RE: [Haskell-cafe] Template haskell instance checking

2006-03-02 Thread Simon Peyton-Jones
Not at the moment, I'm afraid, but it's the kind of question that TH ought to be able to answer. I could offer guidance if someone wanted to implement it. Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of | heatsink | Sent: 02 March 2006 00:55 |

[Haskell-cafe] conditional code, was: Template haskell instance checking

2006-03-02 Thread Christian Maeder
heatsink wrote: Is there a way, in template haskell, to find out what instance declarations exist? I'm not trying to accomplish anything specific right now, but I can see two potential uses for this. One is to emit compile-time error messages from TH code which would be more informative

[Haskell-cafe] Re: Layout rule (was Re: PrefixMap: code review request)

2006-03-02 Thread Ben Rudiak-Gould
I wrote: I just installed Visual Haskell 0.1, and when I type in the editor, CPU usage rises to about 70% and there's a noticeable delay before each character appears on the screen. This is no longer happening, so I guess I ran afoul of a bug. -- Ben

Re: [Haskell-cafe] Help with Type Class

2006-03-02 Thread Daniel Fischer
Am Mittwoch, 1. März 2006 20:20 schrieben Sie: Daniel, data Array i e = Array i i shouldn't the element type appear here? Typo: data Array i e = Array i i [e] --mockup with list Well, the parameter c of CollectionClass has kind (* - *), Array has kind (* - * - *), so it must

[Haskell-cafe] Re: Template haskell instance checking

2006-03-02 Thread heatsink
Is there a way, in template haskell, to find out what instance declarations exist? Not at the moment, I'm afraid, but it's the kind of question that TH ought to be able to answer. I could offer guidance if someone wanted to implement it. I have a concern about how computed class memberships

[Haskell-cafe] Credit Card Authorization code

2006-03-02 Thread S. Alexander Jacobson
I am looking for Haskell code that does credit card authorization? e.g. paypal website pro does not supply a Haskell lib. Does anyone know where to find something like this? -ALex- __ S. Alexander Jacobson tel:917-770-6565

Re: [Haskell-cafe] Layout rule (was Re: PrefixMap: code reviewrequest)

2006-03-02 Thread Brian Hulley
Brian Hulley wrote: [snip] So any solutions welcome :-) Thank to everyone who replied to my queries about this whole layout issue. One other thing I've been wanting to ask (not to change! :-)) for a while is: how is the following acceptable according to the rules in the Haskell98 report

Re: [Haskell-cafe] Layout rule (was Re: PrefixMap: code reviewrequest)

2006-03-02 Thread Jared Updike
Layout only applies when something is less indented than previous lines, I believe... e.g. do c - getContents filename putStrLn blah or do x - getContents filename putStrLn ok works fine but do c - blahAction putStrLn blah obviously won't work Jared. On 3/2/06,