Couldn't match type ‘PersistEntityBackend (Entity a)’ with ‘SqlBackend’
问题 I've got the following: asSqlBackendReader :: ReaderT SqlBackend m a -> ReaderT SqlBackend m a asSqlBackendReader = id insertEnt :: (Entity a) -> IO (Key (Entity a)) insertEnt x = runWithDb $ do insert $ x where runWithDb = runSqlite "test.db" . asSqlBackendReader The purpose of the asSqlBAckendReader is due to Persistent selectList causing error of "Couldn't match type ‘BaseBackend backend0’ with ‘SqlBackend’". I'm running into an error of: • Couldn't match type ‘PersistEntityBackend (Entity