'Doom Emacs > Haskel > What is the keyboard shortcut to evaluate a code block?

In Doom Emacs, Haskell code snippets placed after -- >>> can be evaluated using the mouse by clicking on the "Evaluate..." link. Is there a keyboard shortcut to do the same?

enter image description here



Solution 1:[1]

Not currently (2022-04): there is an open issue about it. The essense of it is that there's a distinction between code lenses (visual decorations that you can point-and-click expecting code modifications) and code actions (code transformations). The Eval plugin for HLS currently only provides a code lens but not the corresponding code action.

Also note that this is not Doom specific or even Emacs specific, this is is shortcoming of the Haskell Language Server.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Artem Pelenitsyn