You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It prints run only twice. The program seems to silently exit before printing more:
> idris --execute Bug.idr
run
run
The program
-- data Fuel = Dry | More Fuel
data Fuel = Dry | More (Lazy Fuel)
run : Fuel -> IO ()
run (More fuel) = do putStrLn "run"
run fuel
run Dry = putStrLn "dry"
main : IO ()
main = run (More $ More $ More Dry)
Notes
If you delete the 2nd line with Lazy Fuel, and uncomment the first line, it works as expected.
Bug observed in idris v1.3.0 and 1.3.1
OS: Debian 4.17
The text was updated successfully, but these errors were encountered:
There seems to be a difference between idris --execute and compiling to an executable and running it.
On Windows with version 1.3.1 (64bit) the excutable compiled from above code runs correctly. But using idris --execute stops after two lines with run as described above.
Steps to Reproduce
Compile and run:
> idris --execute Bug.idr
Expected Behavior
Observed Behavior
It prints run only twice. The program seems to silently exit before printing more:
The program
Notes
If you delete the 2nd line with Lazy Fuel, and uncomment the first line, it works as expected.
Bug observed in idris v1.3.0 and 1.3.1
OS: Debian 4.17
The text was updated successfully, but these errors were encountered: