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
158
Issues
158
List
Board
Labels
Milestones
Merge Requests
11
Merge Requests
11
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
f25948fd
Commit
f25948fd
authored
Nov 22, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Types] Right Tree Type
parent
3a0baea4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Prelude.hs
src/Gargantext/Core/Text/List/Group/Prelude.hs
+5
-2
No files found.
src/Gargantext/Core/Text/List/Group/Prelude.hs
View file @
f25948fd
...
...
@@ -19,18 +19,21 @@ import Data.Monoid
import
Data.Semigroup
import
Data.Set
(
Set
)
import
Data.Text
(
Text
)
import
Data.Map
(
Map
)
import
Gargantext.Core.Types
(
ListType
(
..
))
import
Gargantext.Database.Admin.Types.Node
(
NodeId
)
import
Gargantext.Prelude
import
qualified
Data.Set
as
Set
import
qualified
Data.Map
as
Map
------------------------------------------------------------------------
-- | Group With Scores Main Types
-- Tree of GroupedTextScores
-- Target : type FlowCont Text GroupedTextScores'
data
GroupedTextScores'
score
=
GroupedTextScores'
{
_gts'_listType
::
!
(
Maybe
ListType
)
,
_gts'_children
::
!
(
Se
t
(
GroupedTextScores'
score
))
,
_gts'_children
::
!
(
Map
Tex
t
(
GroupedTextScores'
score
))
,
_gts'_score
::
score
}
deriving
(
Show
,
Ord
,
Eq
)
...
...
@@ -43,7 +46,7 @@ instance (Semigroup a, Ord a) => Semigroup (GroupedTextScores' a) where
instance
(
Ord
score
,
Monoid
score
)
=>
Monoid
(
GroupedTextScores'
score
)
where
mempty
=
GroupedTextScores'
Nothing
Set
.
empty
mempty
mempty
=
GroupedTextScores'
Nothing
Map
.
empty
mempty
makeLenses
'G
r
oupedTextScores'
...
...
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