-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install fay with cabal new-install #459
Comments
Hi Henry, Have you tried to determine which package-db was populated?
I would also recommend to use https://github.com/faylang/fay/wiki/Installing-and-running despite it's outstanding. Could you also please provide which Thanks, |
When I clone the git repository and try to build fay with cabal new-build: ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()() cabal new-build all After my (relatively minor changes): ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()() Now it runs: cabal new-exec fay -- --version ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()() But it cannot find fay-base: cabal new-exec fay -- examples/calc.hs CallStack (from HasCallStack): ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()() This isn't surprising because internally you use ghc-pkg to find the henry@xps ~/haskell/fay-hhl (git)-[master] % ghc-pkg list /home/henry/.ghcup/ghc/8.6.3/lib/ghc-8.6.3/package.conf.d ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()() I am using: ghc --version ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()() which I installed with ghcup: which ghc ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()() Here is the diff between my private version and your current HEAD in ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()() I hope this is helpful. I can send you a pull request if you wish. |
I was able to build examples with Next time I will try to reproduce it by Thanks, |
I realised that I'll try to analyze what improvements it is possible to made to automatically determine this directory and load module from library. |
Hi @henrylaxen! The WA for this problem finally discovered. Workaround
ExplanationWithin GHC-8.6.x and new
These files contained information about location of both local and global package databases. Permanent solutionBriefly, I suppose, it is necessary to implement extra check for
|
Thank you Andrey for looking into this. I was working around it by doing the old cabal install instead of new-build. I'm glad you found a way to run fay with the new system. Thanks again. |
By the way, GHC 8.6 support is available in fay-0.24.0.3. It's already on Hackage. Thank you! |
Hi Andrey, Sorry to say, I'm baaaccck. I just upgraded ghc to 8.8.3 and am again having problems installing fay. Here is a script I wrote which which you should be able to reproduce what is happening.
` ` You can see the end result here. Sadly it ends with: `+ /home/henry/.cabal/bin/fay --base-path fay-base --package-conf dist-newstyle/packagedb/ghc-8.8.3 examples/dom.hs CallStack (from HasCallStack): |
Workaround for me, for now, is to use docker to run fay in an older environment. I've posted a docker image on dockerhub |
Hi @henrylaxen, hope you are doing great! I investigated further As of now, please use
Separate discussion: #469. Thanks, |
what should I do if after installing it with
this is a fresh install of the environment so its.. probable that I did something wrong before getting here I guess. I also don't see it in cabal list, but I think this is a known bug:
I do see the fy-bs file listed there: /Users/robertotomas/.ghc/x86_64-darwin-8.10.5/environments/default
and that is in my /UseLLY,rs/robertotomas/.cabal/store/ghc-8.10.5/package.db/ finally, I can get a bit further if I try to load the share folder under store/fs-bs...:
and with a Main.hs from a
|
I tried to install fay and fay-base with cabal new-install today. I had to bump a few version constraints but both packages managed to install, however when I tried to run fay it could not find fay-base. Any pointers would be appreciated. Thanks.
Best wishes,
Henry Laxen
The text was updated successfully, but these errors were encountered: