mirror of
https://github.com/github/semantic.git
synced 2024-11-24 00:42:33 +03:00
🔥 Data.Copointed; use pointed
instead.
This commit is contained in:
parent
e52f5c9b4c
commit
025d91f6ad
@ -18,7 +18,6 @@ library
|
||||
, Category
|
||||
, Control.Comonad.Cofree
|
||||
, Control.Monad.Free
|
||||
, Data.Copointed
|
||||
, Data.Functor.Both
|
||||
, Data.Option
|
||||
, Data.OrderedMap
|
||||
@ -52,6 +51,7 @@ library
|
||||
, directory
|
||||
, filepath
|
||||
, mtl
|
||||
, pointed
|
||||
, text >= 1.2.1.3
|
||||
, text-icu
|
||||
, these
|
||||
|
@ -1,13 +0,0 @@
|
||||
module Data.Copointed where
|
||||
|
||||
import Data.Functor.Identity
|
||||
|
||||
-- | A value that can return its content.
|
||||
class Copointed c where
|
||||
copoint :: c a -> a
|
||||
|
||||
instance Copointed ((,) a) where
|
||||
copoint = snd
|
||||
|
||||
instance Copointed Identity where
|
||||
copoint = runIdentity
|
Loading…
Reference in New Issue
Block a user