PLP tips
A few hand-made tools and tips for a better experience in Haskell learning.
VSCode extension
Just install this extension and you should have (very basic syntax highlighting) and formatting.
code --install-extension haskell.haskell
Running commands in GHCI at once
TODO document that !
cargo install --git https://codeberg.org/samuelroland/productivity ghr
GHCI missing watch mode
The above experience is way better, but this sequence should run when we are modifying any .hs file or the sequence itself...
TODO: that's the future improvement
I'm searching for a generic watcher that works perfectly to do this...
Compiling and running a binary
ghc --run trim.hs
Or you can use the universal runner r, like r trim.hs.
Better HUnit experience
TODO: what's next...
What's missing: 1.
> ghc --run MapTests.hs
### Error in: 73
Invalid format, failed to extract entry
CallStack (from HasCallStack):
error, called at ./Map.hs:221:14 in main:Map
Cases: 77 Tried: 77 Errors: 1 Failures: 0
VI Mode in GHCI :)
See implemented keybindings for this VI mode.
Quick setup
echo "editMode: Vi" >> ~/.haskeline