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
9
Merge Requests
9
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
4fafc5c0
Unverified
Commit
4fafc5c0
authored
Feb 05, 2019
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing function insertNewOnly
parent
2bbc05e6
Pipeline
#175
failed with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Ngrams.hs
src/Gargantext/API/Ngrams.hs
+4
-0
No files found.
src/Gargantext/API/Ngrams.hs
View file @
4fafc5c0
...
...
@@ -615,6 +615,10 @@ assertValid v = when (not $ validationIsValid v) $ throwError $ _InvalidError #
-- Insertions are not considered as patches,
-- they do not extend history,
-- they do not bump version.
insertNewOnly
::
a
->
Maybe
a
->
Maybe
a
insertNewOnly
a
=
maybe
(
Just
a
)
(
const
$
error
"insertNewOnly: impossible"
)
-- TODO error handling
insertNewListOfNgramsElements
::
RepoCmdM
env
err
m
=>
ListId
->
Map
NgramsType
[
NgramsElement
]
->
m
()
insertNewListOfNgramsElements
listId
m
=
do
...
...
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