
20 Jul
2011
20 Jul
'11
9:05 p.m.
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.