[Haskell-beginners] Can't find or open a Sqlite3 database inWindows Vista
daniel.is.fischer at googlemail.com
Thu Feb 3 19:39:24 CET 2011
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