Skip to content

Commit c236e71

Browse files
committed
Basics: highlight REPL examples
1 parent 1de8cff commit c236e71

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Basics.lidr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,9 @@ For example, the type of \idr{negb True} is \idr{Bool}.
359359

360360
```idris
361361
λΠ> :type True
362-
-- True : Bool
362+
True : Bool
363363
λΠ> :t negb True
364-
-- negb True : Bool
364+
negb True : Bool
365365
```
366366

367367
\todo[inline]{Confirm the "function types" wording.}
@@ -372,7 +372,7 @@ with arrows.
372372

373373
```idris
374374
λΠ> :t negb
375-
-- negb : Bool -> Bool
375+
negb : Bool -> Bool
376376
```
377377

378378
The type of \idr{negb}, written \idr{Bool -> Bool} and pronounced "\idr{Bool}
@@ -458,9 +458,9 @@ default:
458458

459459
```idris
460460
λΠ> S (S (S (S Z)))
461-
-- 4 : Nat
461+
4 : Nat
462462
λΠ> minusTwo 4
463-
-- 2 : Nat
463+
2 : Nat
464464
```
465465

466466
The constructor \idr{S} has the type \idr{Nat -> Nat}, just like the functions

0 commit comments

Comments
 (0)