mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
Document coalesce
.
This commit is contained in:
parent
a300415e58
commit
7fd23f6f29
@ -2,4 +2,5 @@ module Data.Coalescent where
|
||||
|
||||
-- | The class of types which can optionally be coalesced together.
|
||||
class Coalescent a where
|
||||
-- | Returns either Just the combined value of its inputs, or Nothing if they cannot be combined.
|
||||
coalesce :: a -> a -> Maybe a
|
||||
|
Loading…
Reference in New Issue
Block a user