I have the following gloss program:
module Easy where
import Graphics.Gloss
main :: IO ()
main = display (InWindow "My Window" (200,200) (10,10)) white (Circle 80)
However when I run stack runghc Easy I get the following error:
Easy: user error (unknown GLUT entry glutInit)
I tried copying freeglut/bin/(platform)/freeglut.dll to C:\Windows\System32 and renaming it to glut32.dll but the error remains. Can anyone help?
From this thread: