haskell-docs-cli
haskell-docs-cli copied to clipboard
Process blocks when trying to search with no internet
Currently, if you try to search for something when offline, the app hangs.
Current behavior:
$ hdc
$ fromString
fetching: https://hoogle.haskell.org/?mode=json&start=1&hoogle=fromString
<Hangs forever. Not responsive to CTRL+C.>
Desired behavior:
- Check network connection
- On no connection send message such as:
"You are not connected to a network. Please consider running a local hoogle instance"