# How to publish docs to hoogle.haskell.org

**URL:** <https://discourse.haskell.org/t/how-to-publish-docs-to-hoogle-haskell-org/2961>\
**Category:** Learn\
**Created:** [August 27, 2021, 1:12pm UTC](https://discourse.haskell.org/t/how-to-publish-docs-to-hoogle-haskell-org/2961 "2021-08-27T13:12:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaitskov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/yaitskov/32/671_2.png) [@yaitskov](https://discourse.haskell.org/u/yaitskov)\
**Post date:** [August 27, 2021, 1:12pm UTC](https://discourse.haskell.org/t/how-to-publish-docs-to-hoogle-haskell-org/2961/1 "2021-08-27T13:12:39Z")

</div>

Hi,

I wasn’t able to find any info about the way how to merge haddocks of my package into [hoogle.haskell.org](http://hoogle.haskell.org).

Is the only way is publishing package on stackage?

Is it possible to do this without disclosing source code?

---

<div class="post-metadata">

**Author:** ![f-a](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/f-a/32/2740_2.png) [@f-a](https://discourse.haskell.org/u/f-a)\
**Post date:** [August 27, 2021, 1:40pm UTC](https://discourse.haskell.org/t/how-to-publish-docs-to-hoogle-haskell-org/2961/2 "2021-08-27T13:40:22Z")

</div>

You can run google locally and have it work — e.g. — inside ghci. You can feed your packages too, see

```
f@extensa:~$ hoogle generate --help
Hoogle 5.0.17.15, https://hoogle.haskell.org/

hoogle generate [OPTIONS] [PACKAGE]
Generate Hoogle databases
⁝

```

What are you trying to achieve?

---

<div class="post-metadata">

**Author:** ![yaitskov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/yaitskov/32/671_2.png) [@yaitskov](https://discourse.haskell.org/u/yaitskov)\
**Post date:** [August 27, 2021, 2:31pm UTC](https://discourse.haskell.org/t/how-to-publish-docs-to-hoogle-haskell-org/2961/3 "2021-08-27T14:31:33Z")

</div>

I am trying to get my docs discovered on [https://hoogle.haskell.org](https://hoogle.haskell.org) web page.

I noticed I can run hoogle locally, but running dedicated web server for a package docs is not convenient.

---

<div class="post-metadata">

**Author:** ![jaror](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/jaror/32/3271_2.png) [@jaror](https://discourse.haskell.org/u/jaror)\
**Post date:** [August 27, 2021, 2:40pm UTC](https://discourse.haskell.org/t/how-to-publish-docs-to-hoogle-haskell-org/2961/4 "2021-08-27T14:40:37Z")

</div>

Yes, I believe the only way to get your package searchable on Hoogle is to add your package to Stackage.

I don’t think it is possible to add packages to Hackage, let alone Stackage, without disclosing the source code.

I believe it is very common for companies use a custom Hackage server for their proprietary packages, then it is relatively easy to also host a custom Hoogle instance.

---

<div class="post-metadata">

**Author:** ![f-a](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/f-a/32/2740_2.png) [@f-a](https://discourse.haskell.org/u/f-a)\
**Post date:** [August 27, 2021, 2:56pm UTC](https://discourse.haskell.org/t/how-to-publish-docs-to-hoogle-haskell-org/2961/5 "2021-08-27T14:56:49Z")

</div>

What @jaror said, («Hackage is the Haskell community’s central package archive of open source software.»). Plus: you do not need to run a webserver to have local Hoogle (not the command line version, at least), just slap this in your `~/.ghci`:

```
-- :hoogle Int -> Int e :doc Maybe
:def hoogle \x -> return $ ":!hoogle -q --colour -n 10 \"" ++ x ++ "\""
:def hdoc \x -> return $ ":!hoogle --info \"" ++ x ++ "\""
```

---

<div class="post-metadata">

**Author:** ![sullyj3](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/sullyj3/32/2639_2.png) [@sullyj3](https://discourse.haskell.org/u/sullyj3)\
**Post date:** [August 28, 2021, 3:23am UTC](https://discourse.haskell.org/t/how-to-publish-docs-to-hoogle-haskell-org/2961/6 "2021-08-28T03:23:52Z")

</div>

> Is it possible to do this without disclosing source code?

It’s a bit strange to want to publish documentation for a package if you’re not publishing the package itself. How could anyone make use of the documentation if they can’t download the source? Can you give more information about what it is you’re doing?
