Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Type signature displayed in Hoogle is inconsistent with type signature in source #388

Open
tbagrel1 opened this issue Aug 31, 2022 · 2 comments

Comments

@tbagrel1
Copy link

By mistake, I searched for Monad m => m m a -> m a (instead of Monad m => m (m a) -> m a), and still got results:

join :: Monad m => m m a -> m a xlsx-tabular Codec.Xlsx.Util.Tabular.Imports, control-monad-free Control.Monad.Free

But in both packages, join is actually reexported from Control.Monad, and has signature join :: Monad m => m (m a) -> m a

If I search for Monad m => m (m a) -> m a, then I don't see xlsx-tabular Codec.Xlsx.Util.Tabular.Imports and control-monad-free Control.Monad.Free listed, so something wrong might happen when these packages are parsed/indexed.

@googleson78
Copy link

Also reproduces for me:
2022-08-31-110717_778x171_scrot

@ndmitchell
Copy link
Owner

The problem is that the associated file that Haddock generates at https://hackage.haskell.org/package/xlsx-tabular-0.2.2.1/docs/xlsx-tabular.txt contains:

join :: Monad m => m m a -> m a

That's a bug in Haddock. Probably an old Haddock (the first package is 4 years old). But given bad input in, there's not much hope of Hoogle getting this right.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants