# Has Stackage Hoogle stopped mentioning base?

**URL:** <https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292>\
**Category:** Learn\
**Created:** [December 7, 2023, 11:48am UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292 "2023-12-07T11:48:43Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomjaguarpaw](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/tomjaguarpaw/32/1230_2.png) [@tomjaguarpaw](https://discourse.haskell.org/u/tomjaguarpaw)\
**Post date:** [December 7, 2023, 11:48am UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/1 "2023-12-07T11:48:43Z")

</div>

Stackage Hoogle searches no longer seem to return matches in `base`. For example, [searching for `head`](https://www.stackage.org/lts-21.23/hoogle?q=head) yields results in `bytestring`, `text`, `vector`, `lens`, `conduit`, …, but `base` is nowhere to be seen. Is this maybe something to do with the recent [migration of Stackage](http://discourse.haskell.org/t/devops-log-2023-11-29/8231/2)?

---

<div class="post-metadata">

**Author:** ![chreekat](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/chreekat/32/2669_2.png) [@chreekat](https://discourse.haskell.org/u/chreekat)\
**Post date:** [December 7, 2023, 12:55pm UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/2 "2023-12-07T12:55:21Z")

</div>

> [@tomjaguarpaw](#):
>
> Is this maybe something to do with the recent [migration of Stackage](http://discourse.haskell.org/t/devops-log-2023-11-29/8231/2)?

Well, I sure hope not. But there _is_ a new process pushing haddocks to the underlying bucket, so it could be responsible. And while a _different_ process creates the Hoogle database, the underlying Haddocks are also missing as far as I can tell, which does point the finger at the new process. I will continue looking into it.

---

<div class="post-metadata">

**Author:** ![mpilgrem](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/mpilgrem/32/2529_2.png) [@mpilgrem](https://discourse.haskell.org/u/mpilgrem)\
**Post date:** [December 7, 2023, 1:05pm UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/3 "2023-12-07T13:05:55Z")

</div>

Maybe connected: [`base` not listed at https://www.stackage.org/lts-21.23 or /lts-21.22 · Issue #7197 · commercialhaskell/stackage (github.com)](https://github.com/commercialhaskell/stackage/issues/7197)?

---

<div class="post-metadata">

**Author:** ![tomjaguarpaw](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/tomjaguarpaw/32/1230_2.png) [@tomjaguarpaw](https://discourse.haskell.org/u/tomjaguarpaw)\
**Post date:** [December 7, 2023, 1:16pm UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/4 "2023-12-07T13:16:00Z")

</div>

Not connected as far as I can tell, because `lts-21.21` still doesn’t yield results in `base`: [Hoogle Search :: Stackage Server](https://www.stackage.org/lts-21.21/hoogle?q=head)

---

<div class="post-metadata">

**Author:** ![chreekat](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/chreekat/32/2669_2.png) [@chreekat](https://discourse.haskell.org/u/chreekat)\
**Post date:** [December 7, 2023, 1:27pm UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/5 "2023-12-07T13:27:11Z")

</div>

That could be a false negative, as I believe Stackage only keeps Haddocks for the last LTS and the last nightly.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/haskell/original/2X/8/8c8ff80de06bc3583a667110b33b6c372252b340.png)

Which links to [Search shows wrong snapshot version · Issue #305 · commercialhaskell/stackage-server · GitHub](https://github.com/fpco/stackage-server/issues/305)

---

<div class="post-metadata">

**Author:** ![chreekat](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/chreekat/32/2669_2.png) [@chreekat](https://discourse.haskell.org/u/chreekat)\
**Post date:** [December 7, 2023, 1:29pm UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/6 "2023-12-07T13:29:20Z")

</div>

Indeed, the haddocs are there, it’s just the Hoogle search that’s missing.

[https://www.stackage.org/haddock/lts-21.21/base-4.17.2.0/Data-List.html#v:head](https://www.stackage.org/haddock/lts-21.21/base-4.17.2.0/Data-List.html#v:head)

So what we still know for a fact is that _Haddocks_ are missing for lts-21.22 and lts-21.23, and at least the latest nightly. (Trying to figure out how far back that goes now.)

---

<div class="post-metadata">

**Author:** ![tomjaguarpaw](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/tomjaguarpaw/32/1230_2.png) [@tomjaguarpaw](https://discourse.haskell.org/u/tomjaguarpaw)\
**Post date:** [December 7, 2023, 1:31pm UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/7 "2023-12-07T13:31:14Z")

</div>

I don’t think that’s right. I’ve been happily using the Hoogle and Haddocks for `lts-19.1` until this issue cropped up in the last few days. (`lts-19.1` not for any good reason, just because that’s what happened to be in my browser history when I typed “hoogle”.)

---

<div class="post-metadata">

**Author:** ![chreekat](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/chreekat/32/2669_2.png) [@chreekat](https://discourse.haskell.org/u/chreekat)\
**Post date:** [December 7, 2023, 1:48pm UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/8 "2023-12-07T13:48:53Z")

</div>

> [@tomjaguarpaw](#):
>
> I’ve been happily using the Hoogle and Haddocks for `lts-19.1` until this issue cropped up in the last few days.

I haven’t dug that far into the Stackage server code base yet, I know as much as you on that point. 🙂 Does it also tell you “Within LTS Haskell 21.23 (ghc-9.4.8)” like it does for me?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/haskell/original/2X/7/70c24e968852e2bbf6fa86e3fef25cbc1774c308.png)

---

<div class="post-metadata">

**Author:** ![chreekat](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/chreekat/32/2669_2.png) [@chreekat](https://discourse.haskell.org/u/chreekat)\
**Post date:** [December 7, 2023, 1:50pm UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/9 "2023-12-07T13:50:32Z")

</div>

I think I’ve found the root cause to the original problem, by the way. Following up on it now.

---

<div class="post-metadata">

**Author:** ![tomjaguarpaw](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/tomjaguarpaw/32/1230_2.png) [@tomjaguarpaw](https://discourse.haskell.org/u/tomjaguarpaw)\
**Post date:** [December 7, 2023, 1:52pm UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/10 "2023-12-07T13:52:08Z")

</div>

Oh yes, it does!

* * *

---

<div class="post-metadata">

**Author:** ![chreekat](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/chreekat/32/2669_2.png) [@chreekat](https://discourse.haskell.org/u/chreekat)\
**Post date:** [December 7, 2023, 2:18pm UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/11 "2023-12-07T14:18:26Z")

</div>

I think the underlying problem for the Stackage Hoogle search is what I wrote here:

> <https://github.com/commercialhaskell/stackage/issues/7197#issuecomment-1845409785>
>
> Contrast with, say, https://www.stackage.org/lts-21.21, which lists \`base-4.17.2….0\`, and earlier.

From [Compare lts-21.21 with lts-21.22 :: Stackage Server](https://www.stackage.org/diff/lts-21.21/lts-21.22), we can see that `base` and `ghc` were both dropped. But the snapshot still builds, so the libraries are obviously there (and how could they not be, since they are included with GHC).

I think it may be related that 21.22 was the first snapshot using ghc-9.4.8. That version of GHC shipped with a new base, 4.17.2.1, which has not yet been uploaded to Hackage. Neither has the ghc-9.4.8 “package”.

I’ve alerted the GHC 9.4.8 release manager who is doing the upload now.

Although I can’t be certain since I don’t know how wired-in packages are included in snapshots, I have to assume the problem is restricted to the missing Haddocks. Once they are uploaded, future LTSs will work properly, and there is even a chance that the existing LTSs will get automatically repaired. [edit: existing LTSs did not automatically get repaired, sadly. But the docs have finished being uploaded and a future LTS release should include them.]

---

<div class="post-metadata">

**Author:** ![brandonchinn178](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/brandonchinn178/32/5103_2.png) [@brandonchinn178](https://discourse.haskell.org/u/brandonchinn178)\
**Post date:** [December 8, 2023, 4:46pm UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/12 "2023-12-08T16:46:46Z")

</div>

FWIW this was an issue in the past as well:

> <https://github.com/fpco/stackage-server/issues/314>
>
> for example i would expect this to list Data.List 's head from base. It seems to… recently have stopped doing this
> https://www.stackage.org/lts-19.18/hoogle?q=head

---

<div class="post-metadata">

**Author:** ![chreekat](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/chreekat/32/2669_2.png) [@chreekat](https://discourse.haskell.org/u/chreekat)\
**Post date:** [December 9, 2023, 11:47am UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/13 "2023-12-09T11:47:46Z")

</div>

Happy to announce this is now fixed thanks to work by the GHC team and Stackage curators.

---

<div class="post-metadata">

**Author:** ![tomjaguarpaw](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/tomjaguarpaw/32/1230_2.png) [@tomjaguarpaw](https://discourse.haskell.org/u/tomjaguarpaw)\
**Post date:** [December 9, 2023, 3:10pm UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/14 "2023-12-09T15:10:35Z")

</div>

That’s great! Thanks to you for jumping on it, and the GHC team and Stackage curators too.

---

<div class="post-metadata">

**Author:** ![tomjaguarpaw](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/tomjaguarpaw/32/1230_2.png) [@tomjaguarpaw](https://discourse.haskell.org/u/tomjaguarpaw)\
**Post date:** [February 13, 2024, 12:42pm UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/15 "2024-02-13T12:42:32Z")

</div>

@chreekat And now it seems down entirely?

[https://www.stackage.org/lts-22.9/hoogle?q=ix](https://www.stackage.org/lts-22.9/hoogle?q=ix)

> The given Hoogle database is not available.

(Please let me know if there’s somewhere more appropriate I should be reporting issues with Stackage Hoogle.)

---

<div class="post-metadata">

**Author:** ![chreekat](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/chreekat/32/2669_2.png) [@chreekat](https://discourse.haskell.org/u/chreekat)\
**Post date:** [February 13, 2024, 1:07pm UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/16 "2024-02-13T13:07:29Z")

</div>

> [@tomjaguarpaw](#):
>
> (Please let me know if there’s somewhere more appropriate I should be reporting issues with Stackage Hoogle.)

For that matter, I should probably find a better place to announce known issues :X

[https://github.com/commercialhaskell/stackage/issues/7314](https://github.com/commercialhaskell/stackage/issues/7314) is where you’ll find running commentary as I address the latest issue. The short summary: A new lts was generated that included a package that specified `cabal-version: 3.4`. While the snapshot curation process was able to deal with that, the stackage server could not, as it had pinned an old version of the Cabal library. I am in the process of upgrading the stackage-server package to use a newer version of the library now.

---

<div class="post-metadata">

**Author:** ![tomjaguarpaw](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/tomjaguarpaw/32/1230_2.png) [@tomjaguarpaw](https://discourse.haskell.org/u/tomjaguarpaw)\
**Post date:** [February 13, 2024, 1:14pm UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/17 "2024-02-13T13:14:45Z")

</div>

> [@chreekat](#):
>
> should

Thanks for the update!

---

<div class="post-metadata">

**Author:** ![chreekat](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/chreekat/32/2669_2.png) [@chreekat](https://discourse.haskell.org/u/chreekat)\
**Post date:** [February 14, 2024, 10:37am UTC](https://discourse.haskell.org/t/has-stackage-hoogle-stopped-mentioning-base/8292/18 "2024-02-14T10:37:32Z")

</div>

It’s back again! Let me know if there are any more issues.
