It’s because I want a set of “ambient” packages to use in GHCi at any time without having a source file. For example, imagine you want to check if you’re remembering Gauss’s formula correctly. I find it convenient to just be able to type ghci
from anywhere and then do import Test.QuickCheck
and quickCheck $ \n -> n >= 0 ==> sum [1..n] === n * (n + 1) `div` 2
.
3 Likes