Could not find module in ghci

This is nowadays somewhat discouraged but, if you go to your local project folder, and invoke

cabal install --lib  --package-env . nameofthelibraryyouwanttotry

subsequent ghci invocations in that same folder should find the module (explanation here, another explanation).