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
4cd8e9d9
Commit
4cd8e9d9
authored
Oct 29, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[API][NGRAMS] NgramsElement name.
parent
ecf21781
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
Ngrams.hs
src/Gargantext/API/Ngrams.hs
+9
-8
No files found.
src/Gargantext/API/Ngrams.hs
View file @
4cd8e9d9
...
...
@@ -39,22 +39,23 @@ import Gargantext.Core.Types.Main (Tree(..))
import
Gargantext.Core.Utils.Prefix
(
unPrefix
)
import
Gargantext.Core.Types
(
ListType
(
..
))
data
NgramsTree
=
NgramsTree
{
_nn_ngrams
::
Text
,
_nn_id
::
Int
,
_nn_list
::
ListType
}
$
(
deriveJSON
(
unPrefix
"_nn_"
)
''
N
gramsTree
)
data
NgramsElement
=
NgramsElement
{
_nn_ngrams
::
Text
,
_nn_id
::
Int
,
_nn_list
::
ListType
}
$
(
deriveJSON
(
unPrefix
"_nn_"
)
''
N
gramsElement
)
data
NgramsTable
=
NgramsTable
{
_ngramsTable
::
[
Tree
Ngrams
Tree
]
}
data
NgramsTable
=
NgramsTable
{
_ngramsTable
::
[
Tree
Ngrams
Element
]
}
deriving
(
Generic
)
instance
ToJSON
NgramsTable
instance
FromJSON
NgramsTable
instance
FromJSON
(
Tree
Ngrams
Tree
)
instance
FromJSON
(
Tree
Ngrams
Element
)
-- TODO
instance
ToJSON
(
Tree
Ngrams
Tree
)
instance
ToJSON
(
Tree
Ngrams
Element
)
-------------------------------------------------------------------
-------------------------------------------------------------------
-------------------------------------------------------------------
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