Skip to content
Steve Mao edited this page Sep 12, 2019 · 6 revisions

Today I Learned

Install Hoogle on your local machine

Screen Shot 2019-08-17 at 4 28 44 pm

$ cabal install hoogle
# Or
stack install hoogle

With Shell

hoogle generate # for the first time
hoogle fmap

With GHCi

:def hoogle \s -> return $ ":! hoogle --count=15 \"" ++ s ++ "\""

List and uninstall global packages installed by stack

# list global packages
stack exec ghc-pkg -- list # outside of a project directory
stack exec ghc-pkg field <package-name> id
stack exec ghc-pkg unregister <pkg-id>
cd /path/to/stack/packages # This could be something like ~/.local/bin, but is configuration dependent
rm <package name>
Clone this wiki locally