I have been writing CGI scripts in Haskell for a bit and am starting to
get the hang of it.   

1. Generating GIFs
I need to creaet a CGI script that returns a GIF.  The docs are somewhat
unclear about how to do this.

All the IO operators seem to be about Chars and claim to be unicode.
If they are unicode, does that mean they read 2 bytes at a time of the
input stream?
  
Is there a way to mainain the integrity of binary data?

2. Conversions
Can someone give an example of how to use the rounding functions?
e.g.
round :: Double -> Int
When I try to use these functions I get type errors.
I know this is a beginner question but there isn't much literature around
to consult.

3. CGI startup and HUGS
Hugs scripts seem to take a very long time to start up.  
Testing with this:
> main = putStr "content-type: text/html\n\nhello world\n"
Hugs scripts have a noticeable response delay.
The equivalent Perl, C, and GHC executables all respond with negligible
delay. Is there any way to speed up Hugs scripts other than waiting for a
new version?

-Alex-

___________________________________________________________________
S. Alexander Jacobson                   i2x Media  
1-212-697-0184 voice                    1-212-697-1427 fax


Reply via email to