Skip to content

Commit 24244da

Browse files
committed
Fixed redundant imports.
1 parent 4c5f286 commit 24244da

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

src/Graphics/Rendering/OpenGL/GL/IOState.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE CPP #-}
12
{-# OPTIONS_HADDOCK hide #-}
23
--------------------------------------------------------------------------------
34
-- |
@@ -18,7 +19,9 @@ module Graphics.Rendering.OpenGL.GL.IOState (
1819
IOState(..), getIOState, peekIOState, evalIOState, nTimes
1920
) where
2021

22+
#if !MIN_VERSION_base(4,8,0)
2123
import Control.Applicative ( Applicative(..) )
24+
#endif
2225
import Control.Monad ( ap, liftM, replicateM )
2326
import Foreign.Ptr ( Ptr, plusPtr )
2427
import Foreign.Storable ( Storable(sizeOf,peek) )

src/Graphics/Rendering/OpenGL/GL/Tensor.hs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE DeriveDataTypeable #-}
1+
{-# LANGUAGE DeriveDataTypeable, CPP #-}
22
--------------------------------------------------------------------------------
33
-- |
44
-- Module : Graphics.Rendering.OpenGL.GL.Tensor
@@ -19,9 +19,12 @@ module Graphics.Rendering.OpenGL.GL.Tensor (
1919
Vector1(..), Vector2(..), Vector3(..), Vector4(..)
2020
) where
2121

22+
#if !MIN_VERSION_base(4,8,0)
2223
import Control.Applicative ( Applicative(..) )
24+
import Data.Foldable ( Foldable(..) )
25+
#endif
2326
import Control.Monad ( ap )
24-
import Data.Foldable ( Foldable(..), foldlM )
27+
import Data.Foldable ( foldlM )
2528
import Data.Ix ( Ix )
2629
import Data.Traversable ( Traversable(..), mapAccumL )
2730
import Data.Typeable ( Typeable )

src/Graphics/Rendering/OpenGL/GL/VertexAttributes.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE DeriveDataTypeable #-}
1+
{-# LANGUAGE DeriveDataTypeable, CPP #-}
22
{-# OPTIONS_HADDOCK hide #-}
33
--------------------------------------------------------------------------------
44
-- |
@@ -22,7 +22,9 @@ module Graphics.Rendering.OpenGL.GL.VertexAttributes (
2222
Index1(..)
2323
) where
2424

25-
import Control.Applicative
25+
#if !MIN_VERSION_base(4,8,0)
26+
import Control.Applicative ( Applicative(..) )
27+
#endif
2628
import Control.Monad
2729
import Data.Foldable
2830
import Data.Ix

src/Graphics/Rendering/OpenGL/GLU/ErrorsInternal.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
{-# LANGUAGE CPP #-}
12
{-# OPTIONS_GHC -fno-cse #-}
2-
33
{-# OPTIONS_HADDOCK hide #-}
44
--------------------------------------------------------------------------------
55
-- |
@@ -22,8 +22,6 @@ module Graphics.Rendering.OpenGL.GLU.ErrorsInternal (
2222
) where
2323

2424
import Data.IORef ( IORef, newIORef, readIORef, writeIORef )
25-
import Foreign.C.String ( peekCString )
26-
import Foreign.Ptr ( castPtr )
2725
import Graphics.Rendering.GLU.Raw
2826
import Graphics.Rendering.OpenGL.Raw
2927
import System.IO.Unsafe ( unsafePerformIO )

0 commit comments

Comments
 (0)