[Haskell-cafe] Database.postgreSQL.Simple - ambigious type

Brandon Allbery allbery.b at gmail.com
Sun Aug 18 00:12:14 CEST 2013


On Sat, Aug 17, 2013 at 5:59 PM, Hartmut Pfarr
<hartmut0407 at googlemail.com>wrote:

>   query_ conn "select 2 + 2"
>
> I've no errors any more.
> But: I don't see any result (for sure, it is not coeded yet)
>

Yes, because you're not capturing it; it's the return value from `query_`,
which you are throwing away above instead of capturing with some kind of
`res <- query_ ...`. Again, see that section of the documentation I pointed
to for how to get results.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130817/6349c036/attachment.htm>


More information about the Haskell-Cafe mailing list