Fix conditional in cabal file (#12)

The if conditionals were incorrectly nested, which caused a problem with OpenGL on Windows.
This commit is contained in:
sheaf 2021-01-26 12:01:41 +01:00 committed by GitHub
parent 2fbe257c24
commit e220775b21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,11 +56,13 @@ library
if os(windows) if os(windows)
extra-libraries: extra-libraries:
opengl32 opengl32
if os(darwin)
frameworks: OpenGL
else else
extra-libraries: if os(darwin)
GL frameworks:
OpenGL
else
extra-libraries:
GL
if flag(sdl) if flag(sdl)
exposed-modules: exposed-modules: