Missing function insertNewOnly

parent 2bbc05e6
Pipeline #175 failed with stage
......@@ -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
......
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