How to install Haskell with GLUT and OpenGL?

Please help me install Haskell with support for OpenGL and GLUT. I can not find a tutorial that works anywhere. I have found some lessons, but I am getting errors.

The errors are much like the following:

Configuring GLUT-2.2.2.1 ... Setup.hs: At least the following dependencies are missing: OpenGL> = 2.3, StateVar -any, Tensor -any

Edit 1: OS: Windows 7 Professional Service Pack 1 (SP1). I am using the Haskell platform and the following components are not installed by default.

Edit 2: Cabal is not installed, just checked the list of packages installed with the haskell platform, and had to install it manually.

+4
source share
1 answer

Both OpenGL and GLUT are included in the Haskell platform. Just visit http://hackage.haskell.org/platform/ to find out how to install it.

Whenever you need to use Haskell, it is always better to install the Haskell platform, rather than just downloading the GHC compiler and installing it yourself. The Haskell platform includes both the GHC and the most common libraries you will need. It also gives you access to cabal installer, which can be used to easily install any other packages you may need. (When you installed the platform, use cabal help in the terminal to find out more).

+9
source

Source: https://habr.com/ru/post/1384554/


All Articles