hoogle icon indicating copy to clipboard operation
hoogle copied to clipboard

Hoogle doesn't index 'HasCallStack'

Open 3noch opened this issue 6 years ago • 4 comments

https://hoogle.haskell.org/?hoogle=HasCallStack

Produces no results. Yet

https://hoogle.haskell.org/?hoogle=CallStack

does. And HasCallStack is in the same module as CallStack.

Could it be because HasCallStack is a type alias for implicit parameters (a rather rare thing to find)?

3noch avatar Oct 11 '19 18:10 3noch

Very likely, looking at the logs:

base:12050:failed to parse: type HasCallStack = (?callStack :: CallStack)

ndmitchell avatar Oct 12 '19 16:10 ndmitchell

Seems haskell-src-exts gives a parse error on this regardless of how many extensions I enabled. The right long-term fix is to migrate over to ghc-lib-parser, but it's barely worth it for one definition.

ndmitchell avatar Oct 13 '19 12:10 ndmitchell

I could add some more in a new hackage upload... :stuck_out_tongue_closed_eyes:

Makes sense.

3noch avatar Oct 15 '19 13:10 3noch

If someone wants to do the work to migrate to ghc-lib-parser it would be great - but I think the number of issues it resolves is actually quite small. We have more garbage produced by Haddock problems than failure to parse valid stuff problems.

ndmitchell avatar Oct 16 '19 08:10 ndmitchell