
See John's comment, right there in the online version: "The system that generated this webpage didn't have HDBC installed at the time. We'll get that fixed and re-post this chapter. In the meantime, unfortunately, all of the examples on this page will look that way." david48 wrote:
In the online version of Real world Haskell, there's a problem with examples in ghci when the module Database.HDBC.Sqlite3 is imported. It goes on like this for all of chapter 21 and 22.
Example : ( note: this is not me trying to reproduce the examples, it's an actual copy & paste from the site url http://book.realworldhaskell.org/read/using-databases.html )
ghci> :module Database.HDBC Database.HDBC.Sqlite3 Could not find module `Database.HDBC.Sqlite3': Use -v to see a list of the files searched for. ghci> conn <- connectSqlite3 "test1.db"
<interactive>:1:8: Not in scope: `connectSqlite3' ghci> :type conn
<interactive>:1:0: Not in scope: `conn' ghci> disconnect conn
<interactive>:1:0: Not in scope: `disconnect'
<interactive>:1:11: Not in scope: `conn' _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Dr. Janis Voigtlaender http://wwwtcs.inf.tu-dresden.de/~voigt/ mailto:voigt@tcs.inf.tu-dresden.de