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
147
Issues
147
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
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
b3e16c15
Commit
b3e16c15
authored
Oct 09, 2020
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Strict Repo
parent
adfa9d24
Pipeline
#1135
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
Types.hs
src/Gargantext/API/Ngrams/Types.hs
+12
-13
No files found.
src/Gargantext/API/Ngrams/Types.hs
View file @
b3e16c15
...
...
@@ -148,12 +148,11 @@ deriveJSON (unPrefix "_rp_") ''RootParent
makeLenses
''
R
ootParent
data
NgramsRepoElement
=
NgramsRepoElement
{
_nre_size
::
Int
,
_nre_list
::
ListType
--, _nre_root_parent :: Maybe RootParent
,
_nre_root
::
Maybe
NgramsTerm
,
_nre_parent
::
Maybe
NgramsTerm
,
_nre_children
::
MSet
NgramsTerm
{
_nre_size
::
!
Int
,
_nre_list
::
!
ListType
,
_nre_root
::
!
(
Maybe
NgramsTerm
)
,
_nre_parent
::
!
(
Maybe
NgramsTerm
)
,
_nre_children
::
!
(
MSet
NgramsTerm
)
}
deriving
(
Ord
,
Eq
,
Show
,
Generic
)
...
...
@@ -408,11 +407,11 @@ instance ToSchema a => ToSchema (Replace a) where
&
required
.~
[
"old"
,
"new"
]
data
NgramsPatch
=
NgramsPatch
{
_patch_children
::
PatchMSet
NgramsTerm
,
_patch_list
::
Replace
ListType
-- TODO Map UserId ListType
=
NgramsPatch
{
_patch_children
::
!
(
PatchMSet
NgramsTerm
)
,
_patch_list
::
!
(
Replace
ListType
)
-- TODO Map UserId ListType
}
|
NgramsReplace
{
_patch_old
::
Maybe
NgramsRepoElement
,
_patch_new
::
Maybe
NgramsRepoElement
|
NgramsReplace
{
_patch_old
::
!
(
Maybe
NgramsRepoElement
)
,
_patch_new
::
!
(
Maybe
NgramsRepoElement
)
}
deriving
(
Eq
,
Show
,
Generic
)
...
...
@@ -639,9 +638,9 @@ instance Arbitrary a => Arbitrary (Versioned a) where
------------------------------------------------------------------------
data
Repo
s
p
=
Repo
{
_r_version
::
Version
,
_r_state
::
s
,
_r_history
::
[
p
]
{
_r_version
::
!
Version
,
_r_state
::
!
s
,
_r_history
::
!
[
p
]
-- first patch in the list is the most recent
}
deriving
(
Generic
)
...
...
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