m@(~(Just w)) <- createWindow 400 400 "Title" Nothing Nothing
when (isNothing m) (error "Couldn't create window!")
GLFW.makeContextCurrent m
^^^^^^^^^^^^^^^^^^^^^^^^^
then no seg-faults.
Daniel P. Wright
unread,
May 29, 2015, 1:58:24 AM5/29/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to <briand@aracnet.com>, haskel...@haskell.org
Ah, yeah, that blog post I linked is using the "gl" package rather than the "OpenGL"/"OpenGLRaw" packages, so some of the names of things are a bit different.