I wanted to play around with Pong.hs. I downloaded the
.hs file, but when I opened it in Sublime Text (with the Haskell plugin) I was told that
Graphics.Gloss.Interface.Pure.Game were missing.
> cabal install Graphics.Gloss
Graphics.Gloss. Hoogle found it for me. One of the comments in the file mentioned compiling
Gloss. So I tried
> cabal install Gloss
which succeeded -- although I don't understand why. The Sublime Text plugin was also happy. But when I tried to load the code into WinGHCi, I got
Pong.hs:22:1: error: Failed to load interface for ‘Graphics.Gloss’ Use -v to see a list of the files searched for. Pong.hs:23:1: error: Failed to load interface for ‘Graphics.Gloss.Interface.Pure.Game’ Use -v to see a list of the files searched for.
I'd appreciate suggestions about what to try next.