Skip to content

"Remove constraint" refactoring gets spacing wrong #4825

@andreasabel

Description

@andreasabel

Code action for remove constraint gets sometimes spacing wrong.

isInteractionMetaB
  :: forall m. (ReadTCState m, MonadReduce m, MonadPretty m)
  => MetaId
  -> Args
  -> m (Maybe (MetaId, InteractionId, Args))

is turned into

isInteractionMetaB
  :: forall m. ( MonadPretty m)
  =>MetaId
  -> Args
  -> m (Maybe (MetaId, InteractionId, Args))

but correct would be

isInteractionMetaB
  :: forall m. (MonadPretty m)
  => MetaId
  -> Args
  -> m (Maybe (MetaId, InteractionId, Args))

So the space from behind the => is shifted to behind the first (.

Movie

Refactorbug.mov

Your environment

  • MacOS
  • GHC 9.12.2
  • HLS 2.12
  • VSCode

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: hls-refactor-pluginIssues related to the hls-refactor-plugintype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions