1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00

Document coalesce.

This commit is contained in:
Rob Rix 2016-03-10 09:44:43 -05:00
parent a300415e58
commit 7fd23f6f29

View File

@ -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