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

Print the exact error position #645

Merged
merged 1 commit into from
Dec 27, 2022

Conversation

toku-sa-n
Copy link
Collaborator

foo.hs

{-# LANGUAGE CPP #-}
#if 0
#else
AAAAAA=1=1=1=1=1=1=323q5
#endif

Before

%cat foo.hs|stack run --silent
hindent: Parse failed near (1,10)
CallStack (from HasCallStack):
  error, called at src/main/Main.hs:55:24 in main:Main

After

%cat foo.hs|stack run --silent
hindent: Parse failed near (4,10)
CallStack (from HasCallStack):
  error, called at src/main/Main.hs:55:24 in main:Main

@mihaimaruseac mihaimaruseac merged commit 434ecb3 into mihaimaruseac:master Dec 27, 2022
@toku-sa-n toku-sa-n deleted the error_position branch December 27, 2022 14:27
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

Successfully merging this pull request may close these issues.

None yet

2 participants