Re: [Haskell] Better Exception Handling

2004-11-30 Thread Scott Turner
Last week John Goerzen asked about exceptions in Haskell. I responded with some code that supports a hierarchy of exception types. Jules Bean reacted that "the internal implementation with fromDynamic doesn't seem pretty though". Although dynamic types reflect the common implementation of exce

[Haskell] Problems with using the memo-function

2004-11-30 Thread Tom Hofte
Dear all,   I have a problem when I use the memo-function to implement a dynamic programming algorithm to traverse a graph.   I use the memo-function in the code below:   dynamicPropagationUpAlg cname graph = let       mh n   

[Haskell] Re: Network.CGI: ?

2004-11-30 Thread Peter Simons
Johannes Waldmann writes: > How can I use an element? The Network.CGI module can't deal with that, unfortunately. You might want to take a look at the module FormData, which is (temporarily!) available here: http://peti.cryp.to/FormData.hs I'm using this module instead of Network.CGI and it

Re: [Haskell] Real life examples

2004-11-30 Thread Adrian Hey
On Tuesday 30 Nov 2004 11:23 am, Keean Schupke wrote: > Adrian Hey wrote: > >On Sunday 28 Nov 2004 6:44 pm, Lennart Augustsson wrote: > >>But surely any device driver is parametrized on the > >>exact IO addresses? How would you be able to handle > >>multiple devices otherwise? > > > >Maybe, but th

Re: [Haskell] Re: Network.CGI: ?

2004-11-30 Thread Johannes Waldmann
Yes, it is allowed. Looks like the library can't parse multipart/form-data encoded content. If it's indeed the case, you lost. :-( I hope not. I'm prepared to do a bit of coding. (Just a bit :-) The CGI program should "simply" read stdin (?) and decode the parts? Possibly some of the functionali

Re: [Haskell] Real life examples

2004-11-30 Thread Keean Schupke
Adrian Hey wrote: On Sunday 28 Nov 2004 6:44 pm, Lennart Augustsson wrote: But surely any device driver is parametrized on the exact IO addresses? How would you be able to handle multiple devices otherwise? Maybe, but this won't help hardware emulation (unless you're emulating RAM). eh?

Re: [Haskell] Real life examples

2004-11-30 Thread Adrian Hey
On Sunday 28 Nov 2004 6:44 pm, Lennart Augustsson wrote: > But surely any device driver is parametrized on the > exact IO addresses? How would you be able to handle > multiple devices otherwise? Maybe, but this won't help hardware emulation (unless you're emulating RAM). Regards -- Adrian Hey __

[Haskell] Re: Network.CGI: ?

2004-11-30 Thread Ferenc Wagner
Johannes Waldmann <[EMAIL PROTECTED]> writes: > The environment then contains > > , ( "QUERY_STRING", "" ), ( "CONTENT_LENGTH", "1590" ) > , ( "CONTENT_TYPE" >, "multipart/form-data; > boundary=---1409895718904..." >) > > Am I doing something wrong, HTML-wise (is it

[Haskell] Network.CGI: ?

2004-11-30 Thread Johannes Waldmann
I am using Network.CGI (with ghc-6.2) How can I use an element? I guess I know how to produce one: Text.Html.input ! [ Text.Html.nametag , Text.Html.thetype "file" , Text.Html.intAttr "maxlength" 1 , Text.Html.strAttr "accept""text