obelisk icon indicating copy to clipboard operation
obelisk copied to clipboard

identical module names across frontend and backend causes problem with `ob run`

Open rubenmoor opened this issue 3 years ago • 1 comments

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.

rubenmoor avatar Jun 20 '22 00:06 rubenmoor

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

madeline-os avatar Jul 21 '22 21:07 madeline-os