[Haskell-cafe] Mis-understanding something in Haskell interpretation

2006-10-03 Thread Edward Ing
Hi, I am new to Haskell and am learning Haskell on my own with The Haskell School of Expression. Unfortunately there is no teacher that comes along with the book. I am having a problem with loading an excerise. I get this message from ghci on a :l Shapes.hs Shapes.hs:40:40: Couldn't match

Re: [Haskell-cafe] Mis-understanding something in Haskell interpretation

2006-10-03 Thread J. Garrett Morris
On 10/3/06, Edward Ing [EMAIL PROTECTED] wrote: The source is below. Side is types as Float. My assumption was that Haskell would know how to convert the Int to a float and all would be well. I am I mistaken somewhere? The problem is with the last line. Yes - Haskell does not automatically

Re: [Haskell-cafe] Mis-understanding something in Haskell interpretation

2006-10-03 Thread Bulat Ziganshin
Hello Edward, Tuesday, October 3, 2006, 9:44:27 PM, you wrote: Couldn't match `Side' against `Int' In the first argument of `sin', namely `angle' The source is below. Side is types as Float. My assumption was that Haskell would know how to convert the Int to a float and all would be