I’m still in the early stages of learning how to build Plutus smart contracts and am realizing I need a better understanding of working with Haskell, particularly in forming the proper environment files for a project. For example, I create a new project, run cabal init, then begin coding, lets say a simple validator…at that point how do I do the following (without manually or copy/pasting if possible):
- Update the cabal.project file to reflect the appropriate dependency sources
- Update the .cabal file
- Update the app/ .hs file to output my .plutus script
I’m specifically talking about compilation on my local system, not the playground, I want to be able to effectively compile validator scripts which I can immediately test on the testnet.
I’ve not found a clear tutorial on these low level tasks, if someone can point me to a crash course on this portion or similar documentation as it relates to compiling plutus files, that would be so helpful!