mirror of
https://github.com/github/semantic.git
synced 2024-12-19 12:51:52 +03:00
return -> pure
This commit is contained in:
parent
f777bd19c0
commit
5db5b7c5d7
@ -173,7 +173,7 @@ instance ( Monad m
|
||||
kvPair k = pure . injValue . Value.KVPair k
|
||||
|
||||
asPair k
|
||||
| Just (Value.KVPair k v) <- prjValue k = return (k, v)
|
||||
| Just (Value.KVPair k v) <- prjValue k = pure (k, v)
|
||||
| otherwise = fail ("expected key-value pair, got " <> show k)
|
||||
|
||||
hash = pure . injValue . Value.Hash . fmap (injValue . uncurry Value.KVPair)
|
||||
|
Loading…
Reference in New Issue
Block a user