shithub: MicroHs

ref: ddb7571fda33f7d26cf95ac8c0b3ad99bf89607d
dir: /lib/Data/Functor.hs/

View raw version
module Data.Functor(module Data.Functor) where
import Primitives  -- for fixity

class Functor (f :: Type -> Type) where
  fmap :: forall a b . (a -> b) -> f a -> f b

infixl 4 <$>
(<$>) :: forall (f :: Type -> Type) a b . Functor f => (a -> b) -> f a -> f b
(<$>) = fmap

--void :: forall f a . Functor f => f a -> f ()
--void = fmap (const ())