HigherOrderCO / Kind

A modern proof language
https://higherorderco.com
MIT License
3.58k stars 142 forks source link

bug from apply lambda #493

Closed NaoEhSavio closed 4 months ago

NaoEhSavio commented 1 year ago

The problem is in applying lambda that doesn't reduce... ex:

IO.prompt (question: String) : IO String {
  do IO {
    IO.output question
    ask answer = IO.input
    return answer
  }
}
Main {
  IO.prompt "hey"
}

the return without reduced lambda

(IO.do_output "hey" λ* (IO.do_input λx0 (IO.done x0)))