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

Fix for tab indent #71

Merged
merged 1 commit into from
Mar 16, 2015
Merged

Fix for tab indent #71

merged 1 commit into from
Mar 16, 2015

Conversation

itchyny
Copy link
Contributor

@itchyny itchyny commented Mar 15, 2015

If tab indentation exists, the command GhcModType does not work properly.
ghcmod2
This pull request fixes this problem.
ghcmod
Test code. (GitHub converts the tab indent to four spaces, so please substitute by the command %s/^\s\+/\t/g)

main :: IO ()
main = do
    putStrLn "hello"
    putStrLn "world"
    putStrLn      $         "hello" ++ " world"
    putStrLn    (      "world"        ++    " hello"  )

eagletmt added a commit that referenced this pull request Mar 16, 2015
@eagletmt eagletmt merged commit 9d84632 into eagletmt:master Mar 16, 2015
@eagletmt
Copy link
Owner

You should not use hard tabs in Haskell IMO. Thanks though.

@itchyny
Copy link
Contributor Author

itchyny commented Mar 16, 2015

I totally agree with that! Otherwise I would have found this bug much earlier. Thanks for merging.

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.

2 participants