Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,347
    • Issues 5,347
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 567
    • Merge requests 567
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #20101
Closed
Open
Issue created Jul 11, 2021 by Anselm Schüler@schuelermine🎭Contributor

GHCi 9.2.0.20210422 erases left hand side of interactive declaration when tab completion is requested

Summary

When pressing ⭾ while in an interactive prompt, all entered text left of the last equals sign (=) is removed.

Steps to reproduce

  1. Open GHCi (ghci or ghc --interactive)
  2. Type some text containing an equals sign (=) such as let x = 2 +
  3. Press the “tab” key (⭾)

Expected behavior

GHCi will attempt to autocomplete the word left of the cursor.

Actual behavior

GHCi performs the expected behavior but also erases all text left of or at the rightmost equals sign (=).

Demonstration

View this behavior in action in this terminal recording:
https://asciinema.org/a/424970

Environment

  • GHC version used: 9.2.0.20210422

Optional:

  • Operating System: Pop!_OS 21.04 on Linux 5.11.0-7620-generic
  • System Architecture: x86 64
Edited Jul 11, 2021 by Anselm Schüler
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking