Skip to content

Commit c24f5e8

Browse files
authored
[Chapter 3] Re-introduce prelude import (#450)
1 parent bc19448 commit c24f5e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

text/chapter3.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ add x y = x + y
115115
Alternatively, functions can be defined inline using a backslash character followed by a space-delimited list of argument names. To enter a multi-line declaration in PSCi, we can enter "paste mode" using the `:paste` command. In this mode, declarations are terminated using the _Control-D_ key sequence:
116116

117117
```text
118+
> import Prelude
118119
> :paste
119120
… add :: Int -> Int -> Int
120121
… add = \x y -> x + y

0 commit comments

Comments
 (0)