simple text menu in Haskell

Posted by snorlaks on Stack Overflow See other posts from Stack Overflow or by snorlaks
Published on 2010-05-09T23:35:12Z Indexed on 2010/05/09 23:38 UTC
Read the original article Hit count: 389

Filed under:
|

Hello,

I would like to know what is the best solution to create simple menu with functionality described below (pseudo code) just like im used to:

while (true){ x = readLine(); case (x): x == "1" then do sth1 function x == "2" then do sth2 function }

thanks for help, maybe any other ideas on how to make menu not in pattern described above?

© Stack Overflow or respective owner

Related posts about haskell

Related posts about menu