A hack around Linux trouble with the examples by explicitly initializing GLUT. Tested on Ubuntu 14.04 LTS using cabal 1.22.0.1, GHC 7.8.3. This is likely to work on other Linux systems with the GLUT error.
Sorry for not noticing this earlier! Ideally, we'd get rid of GLUT altogether. Gloss unfortunately still has a dependency on it (via its font render) so I guess this might be a good temporary solution.
A hack around Linux trouble with the examples by explicitly initializing GLUT. Tested on Ubuntu 14.04 LTS using cabal 1.22.0.1, GHC 7.8.3. This is likely to work on other Linux systems with the GLUT error.