New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
haskell docs: add info about hoogle's --local flag to section 9.5.2.3 #33217
Conversation
doc/languages-frameworks/haskell.md
Outdated
security reasons, which might be quite an inconvenience. See [this | ||
page](http://kb.mozillazine.org/Links_to_local_pages_do_not_work) for | ||
security reasons, which might be quite an inconvenience. Since version 5 hoogle | ||
server has a `--local` flag that solves the problem. For older versions see |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you describe how it solves the problem (by serving the files,) so people know the implications up front?
btw the hoogle server module does this for you:
|
@jb55 I'm not on nixos, how would one use this, is it just installing it? |
@toonn ah yeah nixos system(d) services are not yet available to non-nixos users. |
doc/languages-frameworks/haskell.md
Outdated
server has a `--local` flag that solves the problem. For older versions see | ||
[Hoogle](https://www.haskell.org/hoogle/). The `--local` flag makes the hoogle | ||
server serve files from your nix store over http, without the flag it will use | ||
`file:\\` URIs. Note, however, that Firefox and possibly other browsers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You accidentally flipped some slashes here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I felt like the backslashes were starting to get outnumbered ; )
Once ndmitchell/hoogle@759f755d lands this will be less of a lie, so might want to hold off on merging until then : ) |
The patch was merged and is in a release so this PR is ready to be merged. |
@toonn Cool, could you rebase? There's merge conflicts. :) |
Relevant section: 9.5.2.3. How to install a compiler with libraries, hoogle and documentation indexes Since version 5 `hoogle server`s --local flag solves the problem with links from `http:` to `file:` URIs: hoogle server --local -p 8080
@srhb, I rebased a while ago, just pinging so I won't have to rebase again : ) |
@toonn Thank you, GitHub doesn't ping me when that happens. :) |
Relevant section: 9.5.2.3. How to install a compiler with libraries, hoogle and documentation indexes
Since version 5
hoogle server
s --local flag solves the problem with links fromhttp:
tofile:
URIs:Motivation for this change
Using the --local flag is easier than the workarounds and not very discoverable.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)