A program hole is a typed gap in an unfinished definition. Idris can type-check a program containing holes and report what type each missing part must have; the gap itself has no definition. section 1.4.4
Ask for the missing type
If putStrLn needs a String but you have a Char, write putStrLn (?convert 'x'). Inspecting convert reveals the required type Char -> String; cast is one way to fill the hole. section 1.4.4
*Hello> :t greeting -------------------------------------- greeting : String
The REPL type query shows how to ask Idris what type a named hole must have. section 1.4.4
Holes also help repair code after a type changes: a temporary conversion hole can expose the required type. In a proof about vector reversal, a hole reveals a helper function’s type and lets the proof details be separated from the computation. section 6.3.3 section 8.2.4
