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

False positives with QualifiedDo #112

Open
brandonchinn178 opened this issue Jan 30, 2023 · 3 comments
Open

False positives with QualifiedDo #112

brandonchinn178 opened this issue Jan 30, 2023 · 3 comments

Comments

@brandonchinn178
Copy link

Repro:

-- Main.hs
{-# LANGUAGE QualifiedDo #-}
import qualified Foo
main :: IO ()
main = pure $ Foo.do
  1
  2
-- Foo.hs
module Foo ((>>)) where
import Prelude hiding ((>>))
(>>) :: Int -> Int -> ()
_ >> _ = ()
$ ghc -fwrite-ide-info Main.hs
$ weeder
./Foo.hs:6: >>
@georgefst
Copy link
Contributor

georgefst commented Oct 10, 2024

I think this is covered by the README section on Overloaded syntax and hopefully fixed by GHC 9.10 as mentioned in #148 (comment).

@ryndubei
Copy link
Collaborator

I think this is covered by the README secion on Overloaded syntax and hopefully fixed by GHC 9.10 as mentioned in #148 (comment).

IIRC unfortunately not: this was outside the scope of the GHC patch being referred to as it focused on type class-based overloaded syntax, which works in a different way to QualifiedDo.

@georgefst
Copy link
Contributor

Ah, damn.

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

3 participants