Minor fix to REPL output for numbers

Uses # instead of text output. Adds several basic library functions.
This commit is contained in:
James Eversole
2024-12-27 16:09:54 -06:00
parent 0dd14a3aea
commit e835caabbc
2 changed files with 31 additions and 10 deletions

View File

@ -35,5 +35,5 @@ decodeResult tc =
case ofString tc of
Right str -> "\"" ++ str ++ "\""
Left _ -> case ofNumber tc of
Right num -> "Number: " ++ show num
Right num -> "# " ++ show num
Left _ -> "Failed to decode number from Tree"