Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

keel repl

Interactive REPL for testing types, tasks, and expressions.

keel repl

Usage

Keel REPL v0.1
Type expressions, define tasks, or :help for commands.

keel> type Mood = happy | sad | neutral
  ✓ type Mood

keel> task greet(name: str) -> str {
  ...   "Hello, {name}!"
  ... }
  ✓ task greet

keel> :types
  Mood = happy | sad | neutral

keel> :quit
Goodbye.

Commands

CommandDescription
:helpShow help
:typesList defined types
:envShow environment
:clearReset all state
:quitExit

Features

  • Multi-line input — open braces automatically continue to the next line
  • History — up/down arrows navigate command history (saved to ~/.keel_history)
  • Ctrl+C — cancels current input (doesn’t exit)
  • Ctrl+D — exits