Closed clojurians-org closed 5 years ago
i use "ob init" to create empty project, the same error occur.
larrys-MBP:test larluo$ ob --no-handoff repl
GHCi, version 8.4.3: http://www.haskell.org/ghc/ :? for help
[1 of 4] Compiling Common.Api ( common/src/Common/Api.hs, interpreted )
[2 of 4] Compiling Common.Route ( common/src/Common/Route.hs, interpreted )
[3 of 4] Compiling Backend ( backend/src/Backend.hs, interpreted )
[4 of 4] Compiling Frontend ( frontend/src/Frontend.hs, interpreted )
Ok, four modules loaded.
Loaded GHCi configuration from /private/var/folders/_3/80s5534109d2j83cfgtwjcjc0000gn/T/ob-ghci-bd8b990800beaccf/.ghci
*Backend Obelisk.Run Frontend Backend> import Crypto.Hash
<no location info>: error:
Ambiguous module name ‘Crypto.Hash’:
it was found in multiple packages:
cryptohash-0.11.9 cryptonite-0.25
I ran into this a week ago with Crypto.Hash
as well - since obelisk throws the common/backend/frontend ~modules~ packages into the same ghci, and ghci doesn't "sandbox" them, the likelihood of conflicting modules/extensions increases.
You can disambiguate the import, via PackageImports e.g.
import "cryptonite" Crypto.Hash
Added to FAQ.md
: #396
module conflicit occurs when i add some module to backend/backend.cabal..
how should i fix this problem under obelisk?