We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import Database.HDBC import Database.HDBC.Sqlite3 main :: IO () main = do c <- connectSqlite3 "some.db" r <- quickQuery c "select 1;" [] disconnect c print r
Raise an error to tell the connection is already closed, similarly to putStrLn =<< (withFile "file" ReadMode $ hGetContents).
putStrLn =<< (withFile "file" ReadMode $ hGetContents)
Only an empty list [] is printed without any error. This can make it very hard to detect I used lazy IO in a wrong way.
[]
The text was updated successfully, but these errors were encountered:
ping
Sorry, something went wrong.
No branches or pull requests
Minimum code to reproduce
Expected result
Raise an error to tell the connection is already closed,
similarly to
putStrLn =<< (withFile "file" ReadMode $ hGetContents)
.Actual result
Only an empty list
[]
is printed without any error.This can make it very hard to detect I used lazy IO in a wrong way.
My environment
The text was updated successfully, but these errors were encountered: