[Haskell-cafe] Takusen and iteratee problem

Vasyl Pasternak vasyl.pasternak at gmail.com
Fri Mar 19 17:17:37 EDT 2010

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

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.


More information about the Haskell-Cafe mailing list