[Haskell-cafe] HDBC PostgreSQL

Patrick Brannan brannanster at gmail.com
Fri Oct 9 15:56:52 EDT 2009


Hello,

I'm getting back into Haskell after an absence of a few years. I'm in
the process of trying to connect to postgresql with hdbc-postgresql on
a Windows XP box.

Seemingly, things installed without  a problem, but at the command
prompt I get the following:

Prelude> :module Database.HDBC Database.HDBC.PostgreSQL
module `Database.HDBC.PostgreSQL' is not loaded

If I run ghci this way with package options here's what I get:

C:\work\haskell\HDBC-postgresql-2.1.0.0>ghci -package HDBC -package
HDBC-postgresql
GHCi, version 6.10.4: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Loading package HUnit-1.2.0.3 ... linking ... done.
Loading package syb ... linking ... done.
Loading package base-3.0.3.1 ... linking ... done.
Loading package old-locale-1.0.0.1 ... linking ... done.
Loading package old-time-1.0.0.2 ... linking ... done.
Loading package random-1.0.0.1 ... linking ... done.
Loading package QuickCheck-1.2.0.0 ... linking ... done.
Loading package bytestring-0.9.1.4 ... linking ... done.
Loading package array-0.2.0.0 ... linking ... done.
Loading package containers-0.2.0.1 ... linking ... done.
Loading package mtl-1.1.0.2 ... linking ... done.
Loading package Win32-2.2.0.0 ... linking ... done.
Loading package time-1.1.4 ... linking ... done.
Loading package convertible-1.0.5 ... linking ... done.
Loading package filepath-1.1.0.2 ... linking ... done.
Loading package directory-1.0.0.3 ... linking ... done.
Loading package process-1.0.1.1 ... linking ... done.
Loading package haskell98 ... linking ... done.
Loading package testpack-1.0.2 ... linking ... done.
Loading package utf8-string-0.3.5 ... linking ... done.
Loading package HDBC-2.1.1 ... linking ... done.
Loading package parsec-2.1.0.1 ... linking ... done.
Loading package HDBC-postgresql-2.1.0.0 ... linking ... done.
Prelude> module HDBC HDBC.PostgreSQL

Now I would think that the line "Loading package
HDBC-postgresql-2.1.0.0 ... linking ... done." means that the module
is installed correctly, but I still can't execute the :module
statement.

Does anyone have any ideas about where I should start? It's probably
something stupid, but I'm a little worn out on searching.

Thank you,
Patrick


More information about the Haskell-Cafe mailing list