Skip to content

Commit

Permalink
Chapter3: add Prelude import (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-thomas authored Aug 18, 2023
1 parent fc22050 commit bc19448
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions text/chapter3.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ Fields of records can be accessed using a dot, followed by the label of the fiel
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:

```haskell
import Prelude -- bring the (+) operator into scope

add :: Int -> Int -> Int
add x y = x + y
```
Expand Down

0 comments on commit bc19448

Please sign in to comment.