1
1
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:
Rob Rix 2016-04-15 11:19:50 -04:00
parent e52f5c9b4c
commit 025d91f6ad
2 changed files with 1 additions and 14 deletions

View File

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

View File

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