Commit 00f463b 1 parent 6dd1c87 commit 00f463b Copy full SHA for 00f463b
File tree 1 file changed +3
-1
lines changed
src/Database/Persist/Monad
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ in order to interpret how to run a
6
6
'Database.Persist.Monad.SqlQueryRep.SqlQueryRep' sent by a lifted function from
7
7
@Database.Persist.Monad.Shim@.
8
8
-}
9
+ {-# LANGUAGE FlexibleContexts #-}
9
10
{-# LANGUAGE TypeFamilies #-}
11
+ {-# LANGUAGE UndecidableSuperClasses #-}
10
12
11
13
module Database.Persist.Monad.Class
12
14
( MonadSqlQuery (.. )
@@ -29,7 +31,7 @@ import Data.Typeable (Typeable)
29
31
import Database.Persist.Monad.SqlQueryRep (SqlQueryRep )
30
32
31
33
-- | The type-class for monads that can run persistent database queries.
32
- class Monad m => MonadSqlQuery m where
34
+ class ( Monad m , MonadSqlQuery ( TransactionM m )) => MonadSqlQuery m where
33
35
type TransactionM m :: Type -> Type
34
36
35
37
-- | Interpret the given SQL query operation.
You can’t perform that action at this time.
0 commit comments