Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/intro/data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ contain constructors that refer to the same data type. For example, a
binary tree can be defined as follows.

```fram
data Tree X =
data rec Tree X =
| Leaf
| Node of Tree, X, Tree
```
Expand Down Expand Up @@ -204,9 +204,9 @@ sequence of definitions.
```fram
data Vec3D T = Vec3D of { x : T, y : T, z : T }

method x (Vec2D { x }) = x
method y (Vec2D { y }) = y
method z (Vec2D { z }) = z
method x (Vec3D { x }) = x
method y (Vec3D { y }) = y
method z (Vec3D { z }) = z
```

Therefore, records can be used in a similar way as records in other
Expand Down
4 changes: 2 additions & 2 deletions src/ref/lexer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Whitespace

The following characters are considered as whitespace (blanks): horizontal tab
(`0x09`), new line (`0x10`), vertical tab (`0x11`), form feed (`0x12`),
carriage return (`0x13`), and space (`0x20`). Whitespace characters are ignored
(`0x09`), new line (`0xA`), vertical tab (`0xB`), form feed (`0xC`),
carriage return (`0xD`), and space (`0x20`). Whitespace characters are ignored
by the lexer, but they separate tokens, e.g., identifiers or literals.

## Comments
Expand Down