
8 Jun
2011
8 Jun
'11
8:59 p.m.
I believe there may be an unneeded pass through chooseRep in at the end of runHandler in the HCContent branch of the content case construct HCContent status a -> do (ct, c) <- liftIO $ chooseRep a cts return $ YARPlain status (headers []) ct c finalSession The chooseRep instance will just be id as a is already of type ChooseRep. While I doubt there would be any performance benefit, as I would hope it is optimized out, it did cause me some confusion while reading to code, so think it would be worth removing for clarity. I've attached a patch for this. Cheers! -Tyson