Did you use 'let'?

Prelude> let f x= x+1
(0.00 secs, 0 bytes)
Prelude> f 2
3


On 21-06-12 19:19, Raul Miller wrote:
> On Tue, Mar 27, 2012 at 8:16 PM, Boyko Bantchev <[email protected]> wrote:
>>> Haskell, on the other hand, is a compiler ...
>> It is a language, and its definition does not prescribe a specific
>> kind of language processor.  And certainly there are interpreters.
> After looking at this...
>
> It seems to me that ghci (as an example of a successful "Haskell
> interpreter") does not implement the same language as ghc (as an
> example of a successful "Haskell compiler").
>
> For example, the following statement is legal in ghc but not legal
> interactively in ghci:
>
> f x=x+1
>

-- 
Met vriendelijke groet,
@@i = Arie Groeneveld



----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to