mirror of
https://github.com/github/semantic.git
synced 2024-12-24 15:35:14 +03:00
Revert "These is an instance of Bifunctor."
This reverts commit e299633535e46af5ca0a6334cdc3891d18fb76b4.
This commit is contained in:
parent
705b0757ed
commit
6fbafa268d
@ -1,14 +1,4 @@
|
||||
module Data.Bifunctor.These where
|
||||
|
||||
import Data.Bifunctor
|
||||
|
||||
data These a b = This a | That b | These a b
|
||||
deriving (Eq, Show)
|
||||
|
||||
|
||||
-- Instances
|
||||
|
||||
instance Bifunctor These where
|
||||
bimap f _ (This a) = This (f a)
|
||||
bimap _ g (That b) = That (g b)
|
||||
bimap f g (These a b) = These (f a) (g b)
|
||||
|
Loading…
Reference in New Issue
Block a user