
19 Mar
2010
19 Mar
'10
5:17 p.m.
Hello Cafe. Today I stuck with the following problem: I want to read a file with iteratee package, and but it to database through Takusen package, but it doesn't work. The `Takusen` was built with `mtl` package, and `iteratee` - with `transformers`, so they are conflicting when used simultaneously. To be concrete, I want to run the code, that looks like: withSession (connect "dbname.db") (do execDDL (sql "create table x (value string)") fillFromFile "file.dat" ) fillFromFile fname = fileDriverFd iter fname iter = iterator that uses execDML (sql "Insert into ...." ).... I have no ideas how to solve the problem, so appreciate any recommendations, that will make it possible. Thanks, Vasyl