1. 10
  1. 2

    I recently tried haskell-language-server and overall I liked using it. From now on I regularly use it when programming Haskell.

    There’s a feature, I do not know if already present, but I’d really like to be able to expand cases. Example:

    matchByText :: Node -> Maybe String
    matchByText s = _
    

    I’d like to set cursor on s, then tell editor to expand this case and retrieve this:

    matchByText :: Node -> Maybe String
    matchByText (Element _ _ _) = _
    matchByText (Text _) = _
    

    That I could then fill up to my liking.

    1. 2

      That feature is advertised in 0.5.0 released a few days ago.

      Check out the cool animations! https://github.com/haskell/haskell-language-server/releases/tag/0.5.0

      1. 2

        Then it goes to install right away!

        Now I’m just wondering how do I access the case splitting from LanguageClient-neovim plugin?

      2. 1

        I believe that’s one of the features mentioned in this article as something that’s coming.