Skip to content

persistent page. Couldn't match type BaseBackend backend0' with SqlBackend' #213

@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions