Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whitespace seem to get somehow mangled(?) in Haskell REPL #371

Open
eshioji opened this issue Aug 1, 2014 · 0 comments
Open

Whitespace seem to get somehow mangled(?) in Haskell REPL #371

eshioji opened this issue Aug 1, 2014 · 0 comments

Comments

@eshioji
Copy link

eshioji commented Aug 1, 2014

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> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant