
11 Aug
2010
11 Aug
'10
5:24 p.m.
On 11 Aug 2010, at 20:54, prad wrote:
i'm curious about the best way to deal with conn to make db connections.
i define it in main like this, then when i want to use it in a function i have to pass it as a parameter:
main = do conn <- connectPostgreSQL ... fn conn something
fn conn x = ...
I too am interested in this.... Right now the best way to me seems to be to use StateT (I am mainly using SQLite). G