mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-25 19:22:08 +03:00
irrefutable pattern
This commit is contained in:
parent
ed04989938
commit
81b6151d51
@ -154,7 +154,7 @@ instance (NFData v) => NFData (MaybeDefault v) where
|
||||
instance Eq v => Semigroup (MaybeDefault v) where
|
||||
_ <> v@(SetTo _) = v
|
||||
x <> KeepCurrent = x
|
||||
_ <> Default = Default
|
||||
_ <> ~Default = Default
|
||||
|
||||
instance Eq v => Monoid ( MaybeDefault v ) where
|
||||
mempty = KeepCurrent
|
||||
|
Loading…
Reference in New Issue
Block a user