I copied the plutus-starter template: https://github.com/input-output-hk/plutus-starter and created a file BasicPlutusTx.hs
(and added it under exposed-modules
in the .cabal
file).
Then I started copying over all the code from the introductory tutorial: https://plutus.readthedocs.io/en/latest/plutus/tutorials/plutus-tx.html
As I work with the tutorial, I like being able to make changes to the code and then see how that affects things in ghci
. I usually use stack
and hpack
and run ghci
with stack ghci
. When I do this, I can just type :reload
in ghci
and it recompiles any changes I've made. But that doesn't seem to work here. Even if I run cabal build
in a separate tab, it doesn't. It seems like I have to quit ghci
, run cabal build
, and then re-run ghci
and re-import everything again. Is there a better way?