functor module

This commit is contained in:
Stephen Diehl
2016-12-12 13:09:18 +00:00
parent 66958def93
commit 257a38f68f
5 changed files with 40 additions and 6 deletions
+26
View File
@@ -0,0 +1,26 @@
Functor
=======
```haskell
foreach :: Functor f => f a -> (a -> b) -> f b
```
```haskell
map :: Functor f => (a -> b) -> f a -> f b
```
```haskell
($>) :: Functor f => f a -> b -> f b
```
```haskell
(<$>) :: Functor f => (a -> b) -> f a -> f b
```
```haskell
(<<$>>) :: (Functor f, Functor g) => (a -> b) -> f (g a) -> f (g b)
```
```haskell
void :: Functor f => f a -> f ()
```