Skip to content

Commit 46d57bd

Browse files
committed
Haskell2010 implies ForeignFunctionInterface. Use other-extensions instead of deprecated extensions.
1 parent 11df15d commit 46d57bd

38 files changed

+38
-41
lines changed

OpenGLRaw.cabal

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,7 @@ library
273273
build-depends: base >= 3 && < 5
274274
default-language: Haskell2010
275275
ghc-options: -Wall -O2
276-
if impl(ghc)
277-
-- these require 6.8, but that's pretty conservative these days
278-
extensions: StandaloneDeriving, DeriveDataTypeable
279-
build-depends: ghc-prim
276+
other-extensions: CPP
280277
if os(windows) && flag(UseNativeWindowsLibraries)
281278
if arch(i386)
282279
cpp-options: "-DCALLCONV=stdcall"

src/Graphics/Rendering/OpenGL/Raw/APPLE/FlushBufferRange.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE ForeignFunctionInterface, CPP #-}
1+
{-# LANGUAGE CPP #-}
22
--------------------------------------------------------------------------------
33
-- |
44
-- Module : Graphics.Rendering.OpenGL.Raw.APPLE.FlushBufferRange

src/Graphics/Rendering/OpenGL/Raw/APPLE/VertexArrayObject.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE ForeignFunctionInterface, CPP #-}
1+
{-# LANGUAGE CPP #-}
22
--------------------------------------------------------------------------------
33
-- |
44
-- Module : Graphics.Rendering.OpenGL.Raw.APPLE.VertexArrayObject

src/Graphics/Rendering/OpenGL/Raw/ARB/CopyBuffer.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE ForeignFunctionInterface, CPP #-}
1+
{-# LANGUAGE CPP #-}
22
--------------------------------------------------------------------------------
33
-- |
44
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.CopyBuffer

src/Graphics/Rendering/OpenGL/Raw/ARB/DrawElementsBaseVertex.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE ForeignFunctionInterface, CPP #-}
1+
{-# LANGUAGE CPP #-}
22
--------------------------------------------------------------------------------
33
-- |
44
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.DrawElementsBaseVertex

src/Graphics/Rendering/OpenGL/Raw/ARB/FramebufferNoAttachments.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE ForeignFunctionInterface, CPP #-}
1+
{-# LANGUAGE CPP #-}
22
--------------------------------------------------------------------------------
33
-- |
44
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.FramebufferNoAttachments

src/Graphics/Rendering/OpenGL/Raw/ARB/GPUShaderFP64.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE ForeignFunctionInterface, CPP #-}
1+
{-# LANGUAGE CPP #-}
22
--------------------------------------------------------------------------------
33
-- |
44
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.GPUShaderFP64

src/Graphics/Rendering/OpenGL/Raw/ARB/GetProgramBinary.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE ForeignFunctionInterface, CPP #-}
1+
{-# LANGUAGE CPP #-}
22
--------------------------------------------------------------------------------
33
-- |
44
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.GetProgramBinary

src/Graphics/Rendering/OpenGL/Raw/ARB/InstancedArrays.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE ForeignFunctionInterface, CPP #-}
1+
{-# LANGUAGE CPP #-}
22
--------------------------------------------------------------------------------
33
-- |
44
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.InstancedArrays

src/Graphics/Rendering/OpenGL/Raw/ARB/ProvokingVertex.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE ForeignFunctionInterface, CPP #-}
1+
{-# LANGUAGE CPP #-}
22
--------------------------------------------------------------------------------
33
-- |
44
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.ProvokingVertex

0 commit comments

Comments
 (0)