Doing Week 04 of cohort 3 Plutus Pioneers here.
In the repl inside the nix shell, inside ~/plutus/plutus-pioneer-program/code/week04
Watching PPP 030402 at 34:54 to about 39:59.
When I do
I get:l src/Week04/Either.hs
Oddly, I can directly import Week04.Monad in the replPrelude Data.Char Text.Read Week04.Either> import Week04.Either Prelude Data.Char Text.Read Week04.Either> :l src/Week04/Either.hs
: warning: [-Wmissing-home-modules] These modules are needed for compilation but not listed in your .cabal file's other-modules: Week04.Monad Ok, two modules loaded. Prelude Data.Char Text.Read Week04.Either>
and Week04.Monad IS part of the plutus-pioneer-program-week04.cabal filePrelude Data.Char Text.Read Week04.Either> import Week04.Monad Prelude Data.Char Text.Read Week04.Either Week04.Monad> :l src/Week04/Either.hs
: warning: [-Wmissing-home-modules] These modules are needed for compilation but not listed in your .cabal file's other-modules: Week04.Monad Ok, two modules loaded. Prelude Data.Char Text.Read Week04.Either Week04.Monad>
but it is listed under "exposed-modules" rather than "other-modules". If I manually edit to put it under other-modules (and remove it from exposed-modules, and various combinations), and even if I exit (:q) and re-enter the repl, the error persists, and I cannot replicate what is being demonstrated in the video.library hs-source-dirs: src exposed-modules: Week04.Contract , Week04.Either , Week04.Homework , Week04.Maybe , Week04.Monad , Week04.Trace , Week04.Writer other-modules: Week04.Vesting build-depends: aeson , base ^>=184.108.40.206 , containers , data-default , freer-extras , playground-common , plutus-contract , plutus-ledger , plutus-ledger-api , plutus-ledger-constraints , plutus-tx-plugin , plutus-tx , text default-language: Haskell2010
Any guidance? Thanks.