Commit 18ae58ab authored by Grégoire Locqueville's avatar Grégoire Locqueville

Renamed `CmdM'` -> `IsCmd`

parent 59a5d04a
...@@ -47,7 +47,7 @@ import Gargantext.Core.Utils.Aeson (jsonOptions) ...@@ -47,7 +47,7 @@ import Gargantext.Core.Utils.Aeson (jsonOptions)
import Gargantext.Core.Utils.Prefix (unPrefix, unPrefixUntagged, unPrefixSwagger) import Gargantext.Core.Utils.Prefix (unPrefix, unPrefixUntagged, unPrefixSwagger)
import Gargantext.Core.Utils.Swagger (wellNamedSchema) import Gargantext.Core.Utils.Swagger (wellNamedSchema)
import Gargantext.Database.Admin.Types.Node (ContextId) import Gargantext.Database.Admin.Types.Node (ContextId)
import Gargantext.Database.Prelude (fromField', HasConnectionPool, CmdM') import Gargantext.Database.Prelude (fromField', HasConnectionPool, IsCmd)
import Gargantext.Prelude hiding (IsString, hash, from, replace, to) import Gargantext.Prelude hiding (IsString, hash, from, replace, to)
import Gargantext.Prelude.Crypto.Hash (IsHashable(..)) import Gargantext.Prelude.Crypto.Hash (IsHashable(..))
import Gargantext.Utils.Servant (TSV, ZIP) import Gargantext.Utils.Servant (TSV, ZIP)
...@@ -730,7 +730,7 @@ initRepo = Repo 1 mempty [] ...@@ -730,7 +730,7 @@ initRepo = Repo 1 mempty []
-------------------- --------------------
type RepoCmdM env err m = type RepoCmdM env err m =
( CmdM' env err m ( IsCmd env err m
, HasConnectionPool env , HasConnectionPool env
, HasConfig env , HasConfig env
) )
......
...@@ -59,7 +59,7 @@ type CmdM'' env err m = ...@@ -59,7 +59,7 @@ type CmdM'' env err m =
, MonadRandom m , MonadRandom m
) )
type CmdM' env err m = type IsCmd env err m =
( MonadReader env m ( MonadReader env m
, MonadError err m , MonadError err m
, MonadBaseControl IO m , MonadBaseControl IO m
...@@ -82,19 +82,19 @@ type IsDBEnvExtra env = ...@@ -82,19 +82,19 @@ type IsDBEnvExtra env =
) )
type CmdM env err m = type CmdM env err m =
( CmdM' env err m ( IsCmd env err m
, IsDBEnvExtra env , IsDBEnvExtra env
) )
type CmdRandom env err m = type CmdRandom env err m =
( CmdM' env err m ( IsCmd env err m
, IsDBEnv env , IsDBEnv env
, MonadRandom m , MonadRandom m
, HasMail env , HasMail env
) )
type Cmd'' env err a = forall m. CmdM'' env err m => m a type Cmd'' env err a = forall m. CmdM'' env err m => m a
type Cmd' env err a = forall m. CmdM' env err m => m a type Cmd' env err a = forall m. IsCmd env err m => m a
type Cmd err a = forall m env. CmdM env err m => m a type Cmd err a = forall m env. CmdM env err m => m a
type CmdR err a = forall m env. CmdRandom env err m => m a type CmdR err a = forall m env. CmdRandom env err m => m a
type DBCmd' env err a = forall m. DbCmd' env err m => m a type DBCmd' env err a = forall m. DbCmd' env err m => m a
...@@ -104,7 +104,7 @@ type DBCmd err a = forall m env. DbCmd' env err m => m a ...@@ -104,7 +104,7 @@ type DBCmd err a = forall m env. DbCmd' env err m => m a
-- to use the Gargantext Database. It's important, to ease testability, -- to use the Gargantext Database. It's important, to ease testability,
-- that these constraints stays as few as possible. -- that these constraints stays as few as possible.
type DbCmd' env err m = ( type DbCmd' env err m = (
CmdM' env err m IsCmd env err m
, IsDBEnv env , IsDBEnv env
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment