mirror of
https://github.com/github/semantic.git
synced 2024-11-28 01:47:01 +03:00
Remove unmarshal instance for Err, as we no longer need this
This commit is contained in:
parent
c9f0deabdb
commit
e48a0fe029
@ -220,11 +220,6 @@ class UnmarshalField t where
|
||||
-> [Node] -- ^ nodes
|
||||
-> MatchM (t (f ann))
|
||||
|
||||
instance UnmarshalField Err where
|
||||
unmarshalField _ _ [] = pure $ Fail "No items provided to unmarshalField."
|
||||
unmarshalField _ _ [x] = Succeed <$> unmarshalNode x
|
||||
unmarshalField d f _ = pure $ Fail ("type '" <> d <> "' expected zero or one nodes in field '" <> f <> "' but got multiple")
|
||||
|
||||
instance UnmarshalField Maybe where
|
||||
unmarshalField _ _ [] = pure Nothing
|
||||
unmarshalField _ _ [x] = Just <$> unmarshalNode x
|
||||
|
Loading…
Reference in New Issue
Block a user