
25 Jul
2007
25 Jul
'07
2:27 p.m.
Hi, I am going through examples from the textbook and trying them out but some don't work. For example: addNum :: Int -> (Int -> Int) addNum n = addN where addN m = n+m This error message i am getting: ERROR - Cannot find "show" function for: *** Expression : addNum 4 *** Of type : Int -> Int Now, the type of show is a->String, but i need some kind of function to print the function as a result. I tried some input output functions but i don't think that is the right way to follow. Can anyone suggest me where to look? Thank you -- View this message in context: http://www.nabble.com/Printing-the-function-result-tf4145303.html#a11790986 Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.