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

Adding placeholders for non-implemented class methods adds non-existant methods #4450

Open
fendor opened this issue Nov 17, 2024 · 0 comments
Labels
component: hls-class-plugin type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@fendor
Copy link
Collaborator

fendor commented Nov 17, 2024

Your environment

GHC 9.6.6, arch linux, HLS 2.9.0.1 installed via ghcup

Steps to reproduce

cabal-version:      3.12
name:               hls-megaparsec-bug
version:            0.1.0.0
-- synopsis:
-- description:
license:            NONE
author:             Fendor
maintainer:         [email protected]
-- copyright:
build-type:         Simple
extra-doc-files:    CHANGELOG.md
-- extra-source-files:

common warnings
    ghc-options: -Wall

library
    import:           warnings
    exposed-modules:  MyLib
    -- other-modules:
    -- other-extensions:
    build-depends:
        base,
        megaparsec

    hs-source-dirs:   src
    default-language: Haskell2010
{-# LANGUAGE FlexibleInstances #-}
module MyLib where
import Text.Megaparsec

instance VisualStream [Int] where

image

Expected behaviour

Should add methods showTokens

Actual behaviour

{-# LANGUAGE FlexibleInstances #-}
module MyLib where
import Text.Megaparsec

instance VisualStream [Int] where
  p1VisualStream = _
  showTokens = _
  tokensLength = _

No idea where p1VisualStream is coming from.

@fendor fendor added type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. status: needs triage labels Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: hls-class-plugin type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

1 participant