obelisk
obelisk copied to clipboard
identical module names across frontend and backend causes problem with `ob run`
I have a module Auth in the backend, and I have a module Auth in the frontend. Both of them are listed in the cabal file under other-modules. They are not exposed.
When running
> ob run
I got
frontend/src/Frontend.hs:141:38: error:
Not in scope: ‘Auth.signup’
Module ‘Auth’ does not export ‘signup’.
|
141 | AuthPage_SignUp -> Auth.signup
| ^^^^^^^^^^^
Failed, 34 modules loaded.
I renamed the module Auth in the frontend to AuthPages and the problem disappeared.
This will likely not be fixed until multiple home support for GHCi lands: https://mpickering.github.io/ide/posts/2020-10-12-multiple-home-units.html