[Haskell-cafe] HDBC-odbc 1.1.4.4 fixes Windows linking problems

Andrew Appleyard andrew.appleyard at gmail.com
Tue Jun 3 23:37:06 EDT 2008


On 4/06/2008 1:05 PM, Greg Matheson wrote:
> I'm getting a 'Parse error in pattern' error.
> 
> C:\Documents and Settings\Administrator>ghci
> GHCi, version 6.8.2: http://www.haskell.org/ghc/  :? for help
> Loading package base ... linking ... done.
> Prelude> :m Database.HDBC.ODBC Database.HDBC
> [...]
> Prelude Database.HDBC Database.HDBC.ODBC> handleSqlError $ conn <- connectODBC "
> dictation"
> <interactive>:1:0: Parse error in pattern

Try:

   conn <- handleSqlError $ connectODBC "dictation"

You can only use '<-' in a do expression, or at the GHCi prompt.

-- Andrew



More information about the Haskell-Cafe mailing list