Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
148
Issues
148
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
18ae58ab
Commit
18ae58ab
authored
Dec 02, 2024
by
Grégoire Locqueville
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed `CmdM'` -> `IsCmd`
parent
59a5d04a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Types.hs
src/Gargantext/API/Ngrams/Types.hs
+2
-2
Prelude.hs
src/Gargantext/Database/Prelude.hs
+5
-5
No files found.
src/Gargantext/API/Ngrams/Types.hs
View file @
18ae58ab
...
...
@@ -47,7 +47,7 @@ import Gargantext.Core.Utils.Aeson (jsonOptions)
import
Gargantext.Core.Utils.Prefix
(
unPrefix
,
unPrefixUntagged
,
unPrefixSwagger
)
import
Gargantext.Core.Utils.Swagger
(
wellNamedSchema
)
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.Crypto.Hash
(
IsHashable
(
..
))
import
Gargantext.Utils.Servant
(
TSV
,
ZIP
)
...
...
@@ -730,7 +730,7 @@ initRepo = Repo 1 mempty []
--------------------
type
RepoCmdM
env
err
m
=
(
CmdM'
env
err
m
(
IsCmd
env
err
m
,
HasConnectionPool
env
,
HasConfig
env
)
...
...
src/Gargantext/Database/Prelude.hs
View file @
18ae58ab
...
...
@@ -59,7 +59,7 @@ type CmdM'' env err m =
,
MonadRandom
m
)
type
CmdM'
env
err
m
=
type
IsCmd
env
err
m
=
(
MonadReader
env
m
,
MonadError
err
m
,
MonadBaseControl
IO
m
...
...
@@ -82,19 +82,19 @@ type IsDBEnvExtra env =
)
type
CmdM
env
err
m
=
(
CmdM'
env
err
m
(
IsCmd
env
err
m
,
IsDBEnvExtra
env
)
type
CmdRandom
env
err
m
=
(
CmdM'
env
err
m
(
IsCmd
env
err
m
,
IsDBEnv
env
,
MonadRandom
m
,
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
.
IsCmd
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
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
-- to use the Gargantext Database. It's important, to ease testability,
-- that these constraints stays as few as possible.
type
DbCmd'
env
err
m
=
(
CmdM'
env
err
m
IsCmd
env
err
m
,
IsDBEnv
env
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment