Skip to content

Commit 4d57039

Browse files
committed
Merge pull request #62 from rbtcollins/master
Docs and ignores
2 parents f6ca090 + b4a1f17 commit 4d57039

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ _trial_temp
33
build/
44
effect.egg-info/
55
dist/
6+
*~

docs/source/intro.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ based on the intent.
7676
7777
def main():
7878
eff = greet()
79-
dispatcher = TypeDispatcher({ReadLine: perform_read_line})
80-
perform(dispatcher, effect)
79+
dispatcher = ComposedDispatcher([
80+
TypeDispatcher({ReadLine: perform_read_line}),
81+
base_dispatcher])
82+
perform(dispatcher, eff)
8183
8284
This has a number of advantages. First, your unit tests for ``get_user_name``
8385
become simpler. You don't need to mock out or parameterize the ``raw_input``

0 commit comments

Comments
 (0)