#!/bin/bash

set -e

apt-get -y --purge remove libghc-void-doc || true
ret="$(hoogle absurd)"
test "$ret" = "No results found"

apt-get -y install libghc-void-doc
ret="$(hoogle absurd)"
test "$ret" = "Data.Void absurd :: Void -> a"

apt-get -y --purge remove libghc-void-doc
ret="$(hoogle absurd)"
test "$ret" = "No results found"
