Skip to content

Commit bc19448

Browse files
Chapter3: add Prelude import (#449)
1 parent fc22050 commit bc19448

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

text/chapter3.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ Fields of records can be accessed using a dot, followed by the label of the fiel
106106
PureScript's functions correspond to JavaScript's functions. Functions can be defined at the top-level of a file by specifying arguments before the equals sign:
107107

108108
```haskell
109+
import Prelude -- bring the (+) operator into scope
110+
109111
add :: Int -> Int -> Int
110112
add x y = x + y
111113
```

0 commit comments

Comments
 (0)