Skip to content
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

haskdogs don't recognise package installed from source code. #1

Open
yihuang opened this issue Nov 10, 2011 · 3 comments
Open

haskdogs don't recognise package installed from source code. #1

yihuang opened this issue Nov 10, 2011 · 3 comments

Comments

@yihuang
Copy link
Contributor

yihuang commented Nov 10, 2011

I don't even know if it's possible, maybe there's no way to know where the source code directory of a package is.

@ierton
Copy link
Owner

ierton commented Nov 10, 2011

Well, haskdogs uses ghc-pkg to find the package containing given module name. For example, you can find that Control.Monad belongs to base-4.3.1.0 (on my system) using

smironov@tenten ~ $ ghc-pkg find-module Control.Monad
/usr/lib/ghc-7.0.4/package.conf.d
base-4.3.1.0
haskell2010-1.0.0.0
/home/smironov/.ghc/i386-linux-7.0.4/package.conf.d

Could you please try this command with a module name installed from source?

@yihuang
Copy link
Contributor Author

yihuang commented Nov 11, 2011

ghc-pkg find-module find the package ok, but cabal unpack can't find it.

@ierton
Copy link
Owner

ierton commented Nov 12, 2011

Hm, one can introduce new option - haskell projects directory to scan in addition to cabal unpack. And here is another thing: can you manually copy (or link) your module into ~/.haskdogs/ and see whether haskdogs can find it?

yihuang pushed a commit to yihuang/haskdogs that referenced this issue Jan 22, 2019
add import Data.Monoid for <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants