From c24f5e8621b53629e9910b355c80d2a60e91d515 Mon Sep 17 00:00:00 2001 From: Zelenya Date: Fri, 18 Aug 2023 03:28:22 +0200 Subject: [PATCH] [Chapter 3] Re-introduce prelude import (#450) --- text/chapter3.md | 1 + 1 file changed, 1 insertion(+) diff --git a/text/chapter3.md b/text/chapter3.md index 2d415b4c1..3d19ffc98 100644 --- a/text/chapter3.md +++ b/text/chapter3.md @@ -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