hugs

やっとhugsの使い方がわかった(遅

% hugs
__   __ __  __  ____   ___      _________________________________________
||   || ||  || ||  || ||__      Hugs 98: Based on the Haskell 98 standard
||___|| ||__|| ||__||  __||     Copyright (c) 1994-2003
||---||         ___||           World Wide Web: http://haskell.org/hugs
||   ||                         Report bugs to: hugs-bugs@haskell.org
||   || Version: November 2003  _________________________________________

Haskell 98 mode: Restart with command line option -98 to enable extensions

Type :? for help
Prelude> foo :: Int -> Int
ERROR - Undefined variable "foo"
Prelude> foo x = x + x
ERROR - Syntax error in input (unexpected `=')
Prelude>

この時点でやる気喪失!だって誰も教えてくれないんだもん

ファイルに書き出して

:l <filename>

とするんですよ!(同じくばかなひとのために。