TonyGen / mongoDB-haskell

MongoDB driver for Haskell
http://hackage.haskell.org/package/mongoDB
Apache License 2.0
57 stars 14 forks source link

Fixed brokenness on GHC 7.2.1. #6

Closed mkscrg closed 12 years ago

mkscrg commented 13 years ago

Refactored the queryRequest function in Database.MongoDB.Query.hs.

See the GitHub issue here: https://github.com/TonyGen/mongoDB-haskell/issues/5

The refactored function does not employ the RecordWildCards extension.

To be honest, I'm not sure why that fixed the problem, or even what the problem truly was. The error message from GHC 7.2.1 (see the GitHub issue) said the record field qOption was not intialized, so it seemed sensible to refactor the method and explicity initialize it.

TonyGen commented 13 years ago

Thanks Michael. Looks like a compiler bug!

TonyGen commented 12 years ago

Hi Michael, Ryan found the root problem and made a smaller fix.

mkscrg commented 12 years ago

Thanks for the heads-up, Tony.