[Haskell-cafe] Network.CGI and SQL Queries
Arlen Cuss
celtic at sairyx.org
Thu Jul 21 03:05:49 CEST 2011
> When I remove the "scoresPassed <- sqlReaderIO" line, the code run
> smoothly. Nothing else references "scoresPassed". The ghc, however,
> gives me this error when the line is included:
I'm not 100% sure, but what if you put a liftM or liftIO in somewhere?
> (liftM output) . renderHtml $ ...
I think the problem is including that changes cgiTMain to executing
in/under another monad; if you specify your types explicitly, it'll help
you avoid the changing types problems.
More information about the Haskell-Cafe
mailing list