Note: For better readability, in the following transcript the user inputs are surrounded by underscores. Thus, when the transcript says "_100_", the user really has typed "100". >=-- START EXAMPLE SESSION -=< __ __ __ __ ____ ___ _________________________________________ || || || || || || ||__ Hugs 98: Based on the Haskell 98 standard ||___|| ||__|| ||__|| __|| Copyright (c) 1994-2005 ||---|| ___|| World Wide Web: http://haskell.org/hugs || || Report bugs to: hugs-bugs@haskell.org || || Version: March 2005 _________________________________________ Haskell 98 mode: Restart with command line option -98 to enable extensions Type :? for help Main> _sumList_ _[1, -5, 70]_ 66 Main> _main_ Try to think of a number in a certain range! Please enter the lower bound of your range: _1_ Please enter the upper bound of your range: _100_ Searching from 1 to 100 My guess #1: 50 Am I (r)ight or is your number (s)maller or (b)igger? _s_ Smaller? Let me see ... My guess #2: 25 Am I (r)ight or is your number (s)maller or (b)igger? _b_ Bigger? Well, I think ... My guess #3: 37 Am I (r)ight or is your number (s)maller or (b)igger? _s_ Smaller? Let me see ... My guess #4: 31 Am I (r)ight or is your number (s)maller or (b)igger? _b_ Bigger? Well, I think ... My guess #5: 34 Am I (r)ight or is your number (s)maller or (b)igger? _r_ Yes! I made it! Main> _main_ Try to think of a number in a certain range! Please enter the lower bound of your range: _1_ Please enter the upper bound of your range: _100_ Searching from 1 to 100 My guess #1: 50 Am I (r)ight or is your number (s)maller or (b)igger? _b_ Bigger? Well, I think ... My guess #2: 75 Am I (r)ight or is your number (s)maller or (b)igger? _s_ Smaller? Let me see ... My guess #3: 62 Am I (r)ight or is your number (s)maller or (b)igger? _b_ Bigger? Well, I think ... My guess #4: 68 Am I (r)ight or is your number (s)maller or (b)igger? _b_ Bigger? Well, I think ... My guess #5: 71 Am I (r)ight or is your number (s)maller or (b)igger? _b_ Bigger? Well, I think ... My guess #6: 73 Am I (r)ight or is your number (s)maller or (b)igger? _b_ Bigger? Well, I think ... ... it is 74! Main> __[Leaving Hugs] >=-- END EXAMPLE SESSION -=<