Closed ysangkok closed 3 years ago
Yes, the failure to load the scripting engine happens when project-m36 is not installed in your GHC packages with cabal install. The consequence is that the optional ability to add Haskell-scripted database functions at runtime is disabled.
I'll have to take a closer look at the second error- I haven't yet seen that but it should be quick to fix.
Thanks for the detailed reports!
It looks like the example SimpleClient connects to "mytestdb" on localhost which, of course, if one just runs the client standalone, does not exist. I'll make that clearer from the error.
On my GHC 8.10.3 installation with Cabal-install 3.2, I get this warning when I do
cabal run project-m36-server -- --database mydbname --hostname 127.0.0.1
:Is this intended?
When I do
cabal run Example-SimpleClient
concurrently, I get another error: