Idris2/tests/idris2/error/perror027/Outdent.idr
2023-09-07 14:57:22 +01:00

6 lines
189 B
Idris

countdown : (secs: Nat) -> IO ()
countdown Z = putStrLn "Lift off!"
countdown (S secs) = do putStrLn (show (S secs))
usleep 1000000
countdown secs