[Haskell-beginners] Can't find or open a Sqlite3 database inWindows Vista

Patrick Lynch kmandpjlynch at verizon.net
Thu Feb 3 19:49:52 CET 2011


oh dear, i never thought of that - thanks...

----- Original Message ----- 
From: "Daniel Fischer" <daniel.is.fischer at googlemail.com>
To: <beginners at haskell.org>
Cc: "Patrick Lynch" <kmandpjlynch at verizon.net>
Sent: Thursday, February 03, 2011 1:39 PM
Subject: Re: [Haskell-beginners] Can't find or open a Sqlite3 database 
inWindows Vista


On Thursday 03 February 2011 19:01:41, Patrick Lynch wrote:
> ...this doesn't work, note the back slash...also, this will only work,
> that is to create the database automatically and then subsquently create
> a table, if you user the 'users' folder...if you use 'program files,
> etal' you will not be able to create the database...bummer: Prelude
> Database.HDBC Database.HDBC.Sqlite3> conn <- connectSqlite3
> "c:\users\user\test1.db" <interactive>:1:27:
> lexical error in string/character literal at character 'u'

The backslash is the escape marker, so if you want a backslash in a String,
you have to escape it (as written, it tries to interpret the escape
sequence '\u', which doesn't exist).

Try with "c:\\users\\user\\test1.db" 




More information about the Beginners mailing list