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
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
4a7eac85
Commit
4a7eac85
authored
Feb 14, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] NgramsPatch conflict resolution small fix + error handling for tests.
parent
fcfb2cd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Ngrams.hs
src/Gargantext/API/Ngrams.hs
+4
-3
No files found.
src/Gargantext/API/Ngrams.hs
View file @
4a7eac85
...
...
@@ -41,7 +41,7 @@ import Data.Functor (($>))
import
Data.Patch.Class
(
Replace
,
replace
,
Action
(
act
),
Applicable
(
..
),
Composable
(
..
),
Transformable
(
..
),
PairPatch
(
..
),
Patched
,
ConflictResolution
,
ConflictResolutionReplace
)
ConflictResolutionReplace
,
ours
)
import
qualified
Data.Map.Strict.Patch
as
PM
import
Data.Monoid
--import Data.Semigroup
...
...
@@ -630,13 +630,14 @@ ngramsStatePatchConflictResolution
::
NgramsType
->
NodeId
->
NgramsTerm
->
ConflictResolutionNgramsPatch
ngramsStatePatchConflictResolution
_ngramsType
_nodeId
_ngramsTerm
=
(
undefined
{- TODO think this through -}
,
listTypeConflictResolution
)
=
(
const
ours
,
ours
)
-- undefined {- TODO think this through -}, listTypeConflictResolution)
class
HasInvalidError
e
where
_InvalidError
::
Prism'
e
Validation
instance
HasInvalidError
ServantErr
where
_InvalidError
=
undefined
{-prism' make match
_InvalidError
=
panic
"error"
{-prism' make match
where
err = err500 { errBody = "InvalidError" }
make _ = err
...
...
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