Idris-dev/test/docs003/docs003.idr
2015-03-20 14:01:49 +01:00

10 lines
191 B
Idris

module docs003
instance [mine] Functor List where
map m [] = []
map m (x :: xs) = m x :: map m xs
||| More functors!
instance [another] Functor List where
map f xs = map @{mine} f xs