-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
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
persistent page. Couldn't match type BaseBackend backend0' with
SqlBackend'
#213
Comments
It looks like this line has a type signature that doesn't belong:
runMigration migrateAll :: IO ()
Do you want to try PRing a fix?
…On Wed, Jul 18, 2018 at 11:23 PM RoelofWobben ***@***.***> wrote:
Hello,
When I run the first code from the persistent page I see this error appear,
* Couldn't match type `BaseBackend backend0' with `SqlBackend'
arising from a use of `runSqlite'
The type variable `backend0' is ambiguous
* In the expression: runSqlite ":memory:"
In the expression:
runSqlite ":memory:"
$ do michaelId <- insert $ Person "Michael" $ Just 26
michael <- get michaelId
liftIO $ print michael
In an equation for `main':
main
= runSqlite ":memory:"
$ do michaelId <- insert $ Person "Michael" $ Just 26
michael <- get michaelId
liftIO $ print michael
|
24 | main = runSqlite ":memory:" $ do
I can make a PR how to solve this but I need to know where this page can
be found.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#213>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AADBBzzYNzHJEcpDo5uUWxb4nL-jGtQfks5uH5kjgaJpZM4VVTcI>
.
|
Moment, this is the code just before the migration is added.
and I solved it with a little help of the slack channel this way :
|
and yes, I can try to make a PR but as I said earlier have to know which file this exactly is. |
The source is available here: https://github.com/yesodweb/yesodweb.com-content/blob/master/book/asciidoc/persistent.asciidoc For future reference, each chapter in the book has a (relatively small) link at the top that says "View source on Github". |
Hello,
When I run the first code from the persistent page I see this error appear,
I can make a PR how to solve this but I need to know where this page can be found.
The text was updated successfully, but these errors were encountered: