Ticket #2237: QI.hs

File QI.hs, 255 bytes (added by claus, 6 years ago)

qualified names in instance contexts and method definitions

Line 
1import Prelude hiding (Functor(..))
2import qualified Prelude (Functor(..))
3
4data X a = X a deriving Show
5
6instance Prelude.Functor X where 
7  Prelude.fmap f (X a) = X (f a)
8
9class Prelude.Functor f => Dope f
10instance Prelude.Functor f => Dope f