Skip to content

Commit bd8ba88

Browse files
committed
improve layout
1 parent cca0510 commit bd8ba88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ When you need to deal with failure, you have several options.
110110
2. **Alt**
111111
3. **MonadError**
112112

113-
### 1. Attempt
113+
#### 1. Attempt
114114

115115
If you want to attempt a computation but recover from failure, you can use the `attempt` function:
116116

@@ -125,7 +125,7 @@ do e <- attempt $ Ajax.get "http://foo.com"
125125
liftEff $ either (const $ trace "Oh noes!") (const $ trace "Yays!") e
126126
```
127127

128-
### 2. Alt
128+
#### 2. Alt
129129

130130
Because `Aff` has an `Alt` instance, you may also use the operator `<|>` to provide an alternative computation in the event of failure:
131131

@@ -134,7 +134,7 @@ do result <- Ajax.get "http://foo.com" <|> Ajax.get "http://bar.com"
134134
return result
135135
```
136136

137-
### 3. MonadError
137+
#### 3. MonadError
138138

139139
`Aff` has a `MonadError` instance, which comes with two functions: `catchError`, and `throwError`.
140140

0 commit comments

Comments
 (0)