|
Re: Re: Begginer question: msg#00060lang.haskell.cafe
On 6 Jan 2005, at 14:06, Maurício wrote: ***** The answer lies available to you in ghci: Prelude> :t 4 4 :: forall t. (Num t) => t The type of for is 'any type in the Num class'. So '4' stands for the Integer four as well as the Float four and the Double four and indeed the Complex 4. No conversion is actually happening. Jules |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Begginer question: 00060, karczma |
|---|---|
| Next by Date: | Re: Re: Begginer question: 00060, Henning Thielemann |
| Previous by Thread: | Re: Re: Begginer questioni: 00060, Henning Thielemann |
| Next by Thread: | Re: Begginer question: 00060, Maurício |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |