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

Qualified Do is Removed on Format #695

Closed
NathanielB123 opened this issue Apr 4, 2023 · 1 comment · Fixed by #696
Closed

Qualified Do is Removed on Format #695

NathanielB123 opened this issue Apr 4, 2023 · 1 comment · Fixed by #696

Comments

@NathanielB123
Copy link
Contributor

Problem

The module name before the do keyword when using the -XQualifiedDo language extension is incorrectly removed by Hindent.

Input haskell

{-# LANGUAGE QualifiedDo #-}

module Main where

foo :: ()
foo = Main.do 
  ()

Expected output haskell

{-# LANGUAGE QualifiedDo #-}

module Main where

foo :: ()
foo = Main.do 
  ()

Actual output haskell

{-# LANGUAGE QualifiedDo #-}

module Main where

foo :: ()
foo = do
  ()
@NathanielB123
Copy link
Contributor Author

I created a pull request with an attempted fix: #696
First time creating a pull request on a public repo, so apologies if I did anything wrong

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 a pull request may close this issue.

1 participant