You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I noticed a weird behaviour regarding whitespaces.
The following expression are identical, only differing in whitespace (x == 1 vs x==1) but the former results in error in Sublime Haskell REPL, but not in plain ghci.
all (\x -> x == 1) ([n | n <- [1..20]])
all (\x -> x==1) ([n | n <- [1..20]])
This is a copy paste from Sublime Haskell REPL
GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> all (\x -> x == 1) ([n | n <- [1..20]])
<interactive>:2:44:
parse error (possibly incorrect indentation or mismatched brackets)
Prelude> all (\x -> x==1) ([n | n <- [1..20]])
False
Prelude>
This is from plain ghci
$ ghci
GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> all (\x -> x == 1) ([n | n <- [1..20]])
False
Prelude> all (\x -> x==1) ([n | n <- [1..20]])
False
Prelude>
The text was updated successfully, but these errors were encountered:
Hi, I noticed a weird behaviour regarding whitespaces.
The following expression are identical, only differing in whitespace (
x == 1
vsx==1
) but the former results in error in Sublime Haskell REPL, but not in plain ghci.This is a copy paste from Sublime Haskell REPL
This is from plain ghci
The text was updated successfully, but these errors were encountered: