News for hackers. Stuff that matters.
Re:Try Python, Ruby, Lua, Scheme, QBasic, Forth ... by WildUtah on Friday September 30, 2011 @04:46PM (#3058520)
Haskell won't run in a repl, will it? GHCi and Hugs demand that functions be specified in a script file and not at the prompt.

Without functions, you really don't have very much of the Haskell language available. It's a partial repl with a fraction of the language at best.

Re:Try Python, Ruby, Lua, Scheme, QBasic, Forth ... by jstepien on Saturday October 01, 2011 @03:47AM (#3059584)
Not necessarily. You can define functions in GHCi using let.

  $ ghci
  Prelude> let fact x = if x == 0 then 1 else x * fact (x - 1)
  Prelude> fact 6
  720