document structure

This commit is contained in:
Stephen Diehl
2016-12-08 09:47:06 +00:00
parent 60ca33fecb
commit ca74e2901d
11 changed files with 52 additions and 14 deletions
+6 -3
View File
@@ -1,7 +1,8 @@
Applicative
===========
#### Functor
Functor
~~~~~~~
```haskell
class Functor (f :: * -> *) where
@@ -17,7 +18,8 @@ class Functor (f :: * -> *) where
($>) :: Functor f => f a -> b -> f b
```
#### Applicatives
Applicatives
~~~~~~~~~~~~
```haskell
class Functor f => Applicative (f :: * -> *) where
@@ -43,7 +45,8 @@ orEmpty :: Alternative f => Bool -> a -> f a
eitherA :: (Alternative f) => f a -> f b -> f (Either a b)
```
#### Alternative
Alternative
~~~~~~~~~~~
```haskell
class Applicative f => Alternative (f :: * -> *) where