Skip to content

Commit

Permalink
Really hide ByteString and only export (un)packUtf8. Removed -O2. Bum…
Browse files Browse the repository at this point in the history
…ped version to 2.11.0.0.
  • Loading branch information
svenpanne committed Feb 27, 2015
1 parent 862a86e commit 068710c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions OpenGL.cabal
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: OpenGL
version: 2.10.0.2
version: 2.11.0.0
synopsis: A binding for the OpenGL graphics system
description:
A Haskell binding for the OpenGL graphics system (GL, version 4.4) and its
A Haskell binding for the OpenGL graphics system (GL, version 4.5) and its
accompanying utility library (GLU, version 1.3).
.
OpenGL is the industry's most widely used and supported 2D and 3D graphics
Expand Down Expand Up @@ -31,7 +31,6 @@ library
Graphics.Rendering.OpenGL.GL.BeginEnd
Graphics.Rendering.OpenGL.GL.Bitmaps
Graphics.Rendering.OpenGL.GL.BufferObjects
Graphics.Rendering.OpenGL.GL.ByteString
Graphics.Rendering.OpenGL.GL.Clipping
Graphics.Rendering.OpenGL.GL.ColorSum
Graphics.Rendering.OpenGL.GL.Colors
Expand Down Expand Up @@ -105,6 +104,7 @@ library
other-modules:
Graphics.Rendering.OpenGL.GL.BlendingFactor
Graphics.Rendering.OpenGL.GL.BufferMode
Graphics.Rendering.OpenGL.GL.ByteString
Graphics.Rendering.OpenGL.GL.Capability
Graphics.Rendering.OpenGL.GL.ComparisonFunction
Graphics.Rendering.OpenGL.GL.ControlPoint
Expand Down Expand Up @@ -145,7 +145,7 @@ library
Graphics.Rendering.OpenGL.GL.VertexAttributes
Graphics.Rendering.OpenGL.GLU.ErrorsInternal
hs-source-dirs: src
ghc-options: -Wall -O2
ghc-options: -Wall
build-depends:
base >= 3 && < 5, bytestring, text, OpenGLRaw >= 2.1, GLURaw >= 1.3.0.0
default-language: Haskell2010
Expand Down
7 changes: 5 additions & 2 deletions src/Graphics/Rendering/OpenGL/GL/Shaders/ShaderObjects.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ module Graphics.Rendering.OpenGL.GL.Shaders.ShaderObjects (

-- * Shader Queries
shaderType, shaderDeleteStatus, compileStatus, shaderInfoLog,
PrecisionType, shaderPrecisionFormat
PrecisionType, shaderPrecisionFormat,

-- * Bytestring utilities
packUtf8, unpackUtf8
) where

import Control.Monad
Expand Down Expand Up @@ -98,7 +101,7 @@ setShaderSource shader src =
with srcLength $ \srcLengthBuf ->
glShaderSource (shaderID shader) 1 srcPtrBuf srcLengthBuf

{-# DEPRECATED shaderSource "Use 'shaderSourceBS' instead." #-}
{-# DEPRECATED shaderSource "Use a combination of 'shaderSourceBS' and 'packUtf8' or 'unpackUtf8' instead." #-}
shaderSource :: Shader -> StateVar [String]
shaderSource shader =
makeStateVar
Expand Down

0 comments on commit 068710c

Please sign in to comment.