ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
738 stars 134 forks source link

Hoogle doesn't index 'HasCallStack' #322

Open 3noch opened 4 years ago

3noch commented 4 years ago

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)?

ndmitchell commented 4 years ago

Very likely, looking at the logs:

base:12050:failed to parse: type HasCallStack = (?callStack :: CallStack)
ndmitchell commented 4 years ago

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.

3noch commented 4 years ago

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

Makes sense.

ndmitchell commented 4 years ago

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.