残念ながら、私はthisオープンglチュートリアルから簡単なサンプルプログラムを取得できません。nixos + haskell + opengl(前提条件)
ghc --make gfx.hs
Could not find module ‘Graphics.UI.GLUT’
[..]
は、それから私は、次のことを試してみました:
cabal install GLUT
Warning: The package list for 'hackage.haskell.org' is 44.1 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
Configuring OpenGLRaw-3.2.2.0...
Failed to install OpenGLRaw-3.2.2.0
Build log (/home/m/.cabal/logs/OpenGLRaw-3.2.2.0.log):
Configuring OpenGLRaw-3.2.2.0...
setup-Simple-Cabal-1.22.5.0-x86_64-linux-ghc-7.10.3: Missing dependency on a
foreign library:
* Missing C library: GL
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
cabal: Error: some packages failed to install:
GLURaw-2.0.0.2 depends on OpenGLRaw-3.2.2.0 which failed to install.
GLUT-2.7.0.10 depends on OpenGLRaw-3.2.2.0 which failed to install.
OpenGL-3.0.1.0 depends on OpenGLRaw-3.2.2.0 which failed to install.
OpenGLRaw-3.2.2.0 failed during the configure step. The exception was:
ExitFailure 1
欠落しているCライブラリに問題があるように見えます。私はnixOSを使用していますが、これを実行するにはどのステップを実行すればよいか誰にも分かりますか?
同様の質問で私の[回答](http://stackoverflow.com/questions/41527061/nixos-haskell-opengl-problems-with-building-and-running-opengl-programs/41588628#41588628)を参照してください。 –