Skip to content

:type/:type-at follow up tasks #638

Closed
@gracjan

Description

@gracjan

When #598 is done there are things that should be improved in that scope:

  • find out it if haskell-mode-show-type-at, haskell-process-do-type and haskell-process-do-try-type can be merged into one functionality
  • if it cannot be merged select a nice binding key
  • document the binding key
  • handle situation when :set +c was not executed by detecting "Couldn't guess that module name. Does it exist?", see here https://github.com/chrisdone/ghci-ng/blob/d5c4e41e265d3f35c976185f0eaa283e05e78169/ghc/GhciFind.hs#L39
  • handle situation when :type-at is a syntax error because somebody uses plain GHCi instead of GHCI-ng: unknown command ':type-at', inform user
  • handle when inserting a signature but selection is only a part of expression, for example selecting from p to 'i' in map (+1) list. Currently it inserts something in the middle breaking the program completely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions