haskell-docs-cli icon indicating copy to clipboard operation
haskell-docs-cli copied to clipboard

Process blocks when trying to search with no internet

Open xave opened this issue 1 year ago • 0 comments

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:

  1. Check network connection
  2. On no connection send message such as: "You are not connected to a network. Please consider running a local hoogle instance"

xave avatar Aug 21 '24 14:08 xave