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

src/Graphics/Rendering/OpenGL/Raw/ARB/SamplerObjects.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.SamplerObjects

src/Graphics/Rendering/OpenGL/Raw/ARB/ShaderStorageBufferObject.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.ShaderStorageBufferObject

src/Graphics/Rendering/OpenGL/Raw/ARB/ShaderSubroutine.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.ShaderSubroutine

src/Graphics/Rendering/OpenGL/Raw/ARB/TextureBufferObject.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.TextureBufferObject

src/Graphics/Rendering/OpenGL/Raw/ARB/TimerQuery.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.TimerQuery

src/Graphics/Rendering/OpenGL/Raw/ARB/UniformBufferObject.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.UniformBufferObject

src/Graphics/Rendering/OpenGL/Raw/ARB/VertexAttrib64Bit.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.VertexAttrib64Bit

src/Graphics/Rendering/OpenGL/Raw/ARB/VertexType2101010Rev.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.VertexType2101010Rev

src/Graphics/Rendering/OpenGL/Raw/Core31/Functions.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
{-# OPTIONS_HADDOCK hide #-}
33
--------------------------------------------------------------------------------
44
-- |

src/Graphics/Rendering/OpenGL/Raw/Core32.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.Core32

src/Graphics/Rendering/OpenGL/Raw/NV/DepthBufferFloat.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.NV.DepthBufferFloat

src/Graphics/Rendering/OpenGL/Raw/NV/ExplicitMultisample.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.NV.ExplicitMultisample

src/Graphics/Rendering/OpenGL/Raw/NV/Fence.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.NV.Fence

src/Graphics/Rendering/OpenGL/Raw/NV/FragmentProgram.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.NV.FragmentProgram

src/Graphics/Rendering/OpenGL/Raw/NV/FramebufferMultisampleCoverage.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.NV.FramebufferMultisampleCoverage

src/Graphics/Rendering/OpenGL/Raw/NV/GPUProgram4.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.NV.GPUProgram4

src/Graphics/Rendering/OpenGL/Raw/NV/GeometryProgram4.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.NV.GeometryProgram4

src/Graphics/Rendering/OpenGL/Raw/NV/HalfFloat.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.NV.HalfFloat

src/Graphics/Rendering/OpenGL/Raw/NV/OcclusionQuery.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.NV.OcclusionQuery

src/Graphics/Rendering/OpenGL/Raw/NV/ParameterBufferObject.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.NV.ParameterBufferObject

src/Graphics/Rendering/OpenGL/Raw/NV/PathRendering.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.NV.PathRendering

src/Graphics/Rendering/OpenGL/Raw/NV/PresentVideo.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.NV.PresentVideo

src/Graphics/Rendering/OpenGL/Raw/NV/PrimitiveRestart.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.NV.PrimitiveRestart

src/Graphics/Rendering/OpenGL/Raw/NV/RegisterCombiners.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.NV.RegisterCombiners

src/Graphics/Rendering/OpenGL/Raw/NV/RegisterCombiners2.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.NV.RegisterCombiners2

src/Graphics/Rendering/OpenGL/Raw/NV/TransformFeedback.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.NV.TransformFeedback

src/Graphics/Rendering/OpenGL/Raw/NV/VertexArrayRange.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.NV.VertexArrayRange

src/Graphics/Rendering/OpenGL/Raw/NV/VertexProgram.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.NV.VertexProgram

0 commit comments

Comments
 (0)