You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code block gets highlighted incorrectly. The word "fold" in the type definition gets highlighted blue (as a type variable) instead of yellow. When I remove "Usable a b =>" from the definition of ListCh, it gets highlighted correctly.
dataLista=No | Onea | Twoa (Lista) derivingShowdataList_ab=No_ | One_a | Two_abnewtypeListCha=ListCh (forallb.Usableab=> (List_ab->b) ->b)
fold:: (List_ab->b) ->Lista->b
fold a No= a No_
fold a (One x) = a (One_ x)
fold a (Two x xs) = a (Two_ x (fold a xs))
This is the whole code file (as a .txt because .hs is not supported): list.txt
Include debug information
When I add my extension logs, the message gets too long. If desired, I could add them to the issue as a file.
The text was updated successfully, but these errors were encountered:
I can reproduce the issue, but I think this is issue is caused by https://github.com/JustusAdam/language-haskell. By default, this vscode-haskell plugin (and HLS) do not provide the syntax highlighting.
Your environment
OS: Windows 11
Steps to reproduce
This code block gets highlighted incorrectly. The word "fold" in the type definition gets highlighted blue (as a type variable) instead of yellow. When I remove "Usable a b =>" from the definition of ListCh, it gets highlighted correctly.
This is the whole code file (as a .txt because .hs is not supported): list.txt
Include debug information
When I add my extension logs, the message gets too long. If desired, I could add them to the issue as a file.
The text was updated successfully, but these errors were encountered: