~ubuntu-branches/ubuntu/raring/agda-stdlib/raring-proposed

« back to all changes in this revision

Viewing changes to src/Category/Functor.agda

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane
  • Date: 2010-01-08 23:35:09 UTC
  • Revision ID: james.westby@ubuntu.com-20100108233509-l6ejt9xji64xysfb
Tags: upstream-0.3
Import upstream version 0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
------------------------------------------------------------------------
 
2
-- Functors
 
3
------------------------------------------------------------------------
 
4
 
 
5
-- Note that currently the functor laws are not included here.
 
6
 
 
7
module Category.Functor where
 
8
 
 
9
open import Data.Function
 
10
 
 
11
record RawFunctor (f : Set → Set) : Set₁ where
 
12
  infixl 4 _<$>_ _<$_
 
13
 
 
14
  field
 
15
    _<$>_ : ∀ {a b} → (a → b) → f a → f b
 
16
 
 
17
  _<$_ : ∀ {a b} → a → f b → f a
 
18
  x <$ y = const x <$> y