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
141
Issues
141
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
cc35e3d0
Commit
cc35e3d0
authored
Nov 22, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Types] Right Tree Type
parent
ce2fddbd
Changes
1
Hide 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 @
cc35e3d0
...
...
@@ -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