Commit 4a7eac85 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] NgramsPatch conflict resolution small fix + error handling for tests.

parent fcfb2cd8
...@@ -41,7 +41,7 @@ import Data.Functor (($>)) ...@@ -41,7 +41,7 @@ import Data.Functor (($>))
import Data.Patch.Class (Replace, replace, Action(act), Applicable(..), import Data.Patch.Class (Replace, replace, Action(act), Applicable(..),
Composable(..), Transformable(..), Composable(..), Transformable(..),
PairPatch(..), Patched, ConflictResolution, PairPatch(..), Patched, ConflictResolution,
ConflictResolutionReplace) ConflictResolutionReplace, ours)
import qualified Data.Map.Strict.Patch as PM import qualified Data.Map.Strict.Patch as PM
import Data.Monoid import Data.Monoid
--import Data.Semigroup --import Data.Semigroup
...@@ -630,13 +630,14 @@ ngramsStatePatchConflictResolution ...@@ -630,13 +630,14 @@ ngramsStatePatchConflictResolution
:: NgramsType -> NodeId -> NgramsTerm :: NgramsType -> NodeId -> NgramsTerm
-> ConflictResolutionNgramsPatch -> ConflictResolutionNgramsPatch
ngramsStatePatchConflictResolution _ngramsType _nodeId _ngramsTerm ngramsStatePatchConflictResolution _ngramsType _nodeId _ngramsTerm
= (undefined {- TODO think this through -}, listTypeConflictResolution) = (const ours, ours)
-- undefined {- TODO think this through -}, listTypeConflictResolution)
class HasInvalidError e where class HasInvalidError e where
_InvalidError :: Prism' e Validation _InvalidError :: Prism' e Validation
instance HasInvalidError ServantErr where instance HasInvalidError ServantErr where
_InvalidError = undefined {-prism' make match _InvalidError = panic "error" {-prism' make match
where where
err = err500 { errBody = "InvalidError" } err = err500 { errBody = "InvalidError" }
make _ = err make _ = err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment