FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Purs IDE caseSplit does not always find correct cases · Issue #3053 · purescript/purescript · GitHub

Purs IDE caseSplit does not always find correct cases #3053

Description

Depending on what modules you have in scope, case splitting might not find the correct one: For example, after installing purescript-lists, if you tell it you want List as the "type", it finds Data.List.Lazy.Types.List:

$ rlwrap purs ide client
{"command": "caseSplit", "params": {"line": "elem a as", "begin": 7, "end": 9, "annotations": true, "type": "List"}}
{"result":["elem a (List ( _ :: (Lazy (Step a))))"],"resultType":"success"}

If you give it a fully qualified name, it still finds the wrong one:

$ rlwrap purs ide client
{"command": "caseSplit", "params": {"line": "elem a as", "begin": 7, "end": 9, "annotations": true, "type": "Data.List.Types.List"}}
{"result":["elem a (List ( _ :: (Lazy (Step a))))"],"resultType":"success"}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL