This is the repo I use to solve the katas in Haskell and maybe ocasionally stream on Twitch. 🤞🏻
As any normal Haskell project, you just fire everything inside ghci and tweak the code until it works:
Configuring GHCi with the following packages:
GHCi, version 9.4.5: https://www.haskell.org/ghc/ :? for help
ghci> :l Codewars.Kata.Braces
[1 of 1] Compiling Codewars.Kata.Braces ( Codewars/Kata/Braces.hs, interpreted )
Ok, one module loaded.
ghci> main
In case you need to load up ghci with packages again:
stack repl --package megaparsec
In theory, the Cabal version should work too (cabal repl --ghc-option='-package megaparsec'
) but we both know how useless Cabal is... 😏