-
Notifications
You must be signed in to change notification settings - Fork 6
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
remove library section becuase it breaks haddock with cabal 1.14 & 1.16 #6
base: master
Are you sure you want to change the base?
Conversation
Hi Tim, thanks for looking into this, however the reason the library section is there is because without it cabal will refuse to register cgen, making it impossible to list it as a dependency for other packages. You can test it: $ vi cgen.cabal # remove library section This makes e.g. hogre impossible to install as it depends on cgen. Removing the dependency would result in an ugly error when trying to configure packages that use cgen. If you find a workaround for this I'll be happy to accept your patch - would be good to have working haddock docs. Thanks, |
What am I doing wrong here? All I'm trying to do is get this thing installed so I can try it. [tim@ghost:~]$ rm -rf ~/.ghc ~/.cabal [tim@ghost:~]$ cabal update [tim@ghost:~]$ cabal install --disable-documentation cgen |
If I remove the Library line, then it installs fine but then I can't use it (the problem you noted). |
Maybe if we have at least one dummy module as the 'library' it will work? |
That's odd, I haven't seen that problem before. It works on my setup (Linux, Cabal 1.16.0.2, GHC 7.6.1). But I interpret your output so that it's not haddock causing problems but instead the cabal dependency handling. I needed to "cabal install mtl parsec regex-posix safe" before cabal would even start building cgen. Not sure what the root problem is though. |
I have those libraries installed (you can see from the 'linking'). Yet you are right. This works on my Mac without a problem. |
No description provided.