Skip to content

Commit

Permalink
[Chapter 3] Re-introduce prelude import (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelenya authored Aug 18, 2023
1 parent bc19448 commit c24f5e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions text/chapter3.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ add x y = x + y
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:

```text
> import Prelude
> :paste
… add :: Int -> Int -> Int
… add = \x y -> x + y
Expand Down

0 comments on commit c24f5e8

Please sign in to comment.