Kind1 icon indicating copy to clipboard operation
Kind1 copied to clipboard

bug from apply lambda

Open NaoEhSavio opened this issue 3 years ago • 0 comments

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)))

NaoEhSavio avatar Feb 16 '23 19:02 NaoEhSavio