[Haskell-cafe] Re: FastCGI error handling
asviraspossible at gmail.com
Mon Aug 3 08:51:24 EDT 2009
On Mon, Aug 3, 2009 at 4:32 PM, Victor Nazarov<asviraspossible at gmail.com> wrote:
> I've been trying to write some simple web application in haskell using
> FastCGI, HDBC and HStringTemplate. I've got stuck with the following
> main :: IO ()
> -- main = runFastCGIConcurrent' forkIO 10 (handleErrors test) -- This
> allways gives internal error without a chance to find out what happens
> main = runFastCGI $ handleErrors test -- This works fine
> So one variant of main function works, the other allways gives no
> output. What can be the case?
The problem seems to be GHC's -threaded flag. Everything works fine
with this flag.
More information about the Haskell-Cafe