flaw-gl/Flaw/Graphics/OpenGL/FFI.hs

Summary

Maintainability
Test Coverage

Eta reduce
Open

glBufferData_null target size usage = glBufferData target size nullPtr usage
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glBufferData_null target size usage
  = glBufferData target size nullPtr usage

Perhaps

glBufferData_null target size = glBufferData target size nullPtr

Use camelCase
Open

glGetUniformBlockIndex_s programName uniformBlockName = B.useAsCString (T.encodeUtf8 uniformBlockName) $ glGetUniformBlockIndex programName
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glGetUniformBlockIndex_s programName uniformBlockName = ...

Perhaps

glGetUniformBlockIndexS programName uniformBlockName = ...

Use camelCase
Open

glBufferData_bs target bytes usage = B.unsafeUseAsCStringLen bytes $ \(bytesPtr, bytesLen) ->
  glBufferData target (fromIntegral bytesLen) bytesPtr usage
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glBufferData_bs target bytes usage = ...

Perhaps

glBufferDataBs target bytes usage = ...

Use camelCase
Open

glBufferData_null :: GLenum -> GLsizeiptr -> GLenum -> IO ()
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glBufferData_null :: GLenum -> GLsizeiptr -> GLenum -> IO ()

Perhaps

glBufferDataNull :: GLenum -> GLsizeiptr -> GLenum -> IO ()

Use camelCase
Open

glDrawBuffers_n :: Int -> IO ()
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glDrawBuffers_n :: Int -> IO ()

Perhaps

glDrawBuffersN :: Int -> IO ()

Use camelCase
Open

glGetUniformLocation_s programName locationName = B.useAsCString (T.encodeUtf8 locationName) $ glGetUniformLocation programName
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glGetUniformLocation_s programName locationName = ...

Perhaps

glGetUniformLocationS programName locationName = ...

Use camelCase
Open

glShaderSource_s :: GLuint -> T.Text -> IO ()
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glShaderSource_s :: GLuint -> T.Text -> IO ()

Perhaps

glShaderSourceS :: GLuint -> T.Text -> IO ()

Use camelCase
Open

glGetProgramInfoLog_s :: GLuint -> IO T.Text
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glGetProgramInfoLog_s :: GLuint -> IO T.Text

Perhaps

glGetProgramInfoLogS :: GLuint -> IO T.Text

Use camelCase
Open

glDrawBuffers_n colorBuffersCount =
  withArray [GL_COLOR_ATTACHMENT0 + fromIntegral i | i <- [0..(colorBuffersCount - 1)]] $
  glDrawBuffers $ fromIntegral colorBuffersCount
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glDrawBuffers_n colorBuffersCount = ...

Perhaps

glDrawBuffersN colorBuffersCount = ...

Use camelCase
Open

glGetShaderInfoLog_s :: GLuint -> IO T.Text
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glGetShaderInfoLog_s :: GLuint -> IO T.Text

Perhaps

glGetShaderInfoLogS :: GLuint -> IO T.Text

Use camelCase
Open

glGetUniformLocation_s :: GLuint -> T.Text -> IO GLint
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glGetUniformLocation_s :: GLuint -> T.Text -> IO GLint

Perhaps

glGetUniformLocationS :: GLuint -> T.Text -> IO GLint

Use camelCase
Open

glGetUniformBlockIndex_s :: GLuint -> T.Text -> IO GLuint
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glGetUniformBlockIndex_s :: GLuint -> T.Text -> IO GLuint

Perhaps

glGetUniformBlockIndexS :: GLuint -> T.Text -> IO GLuint

Use camelCase
Open

glBufferData_bs :: GLenum -> B.ByteString -> GLenum -> IO ()
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glBufferData_bs :: GLenum -> B.ByteString -> GLenum -> IO ()

Perhaps

glBufferDataBs :: GLenum -> B.ByteString -> GLenum -> IO ()

Use camelCase
Open

glGetShaderInfoLog_s shaderName = do
  logLength <- alloca $ \logLengthPtr -> do
    poke logLengthPtr 0
    glGetShaderiv shaderName GL_INFO_LOG_LENGTH logLengthPtr
    peek logLengthPtr
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glGetShaderInfoLog_s shaderName = ...

Perhaps

glGetShaderInfoLogS shaderName = ...

Use camelCase
Open

glShaderSource_s shaderName source = B.unsafeUseAsCStringLen (T.encodeUtf8 source) $ \(sourcePtr, sourceLen) ->
  with sourcePtr $ \sourcePtrPtr ->
    with (fromIntegral sourceLen) $ \sourceLenPtr ->
      glShaderSource shaderName 1 sourcePtrPtr sourceLenPtr
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glShaderSource_s shaderName source = ...

Perhaps

glShaderSourceS shaderName source = ...

Use camelCase
Open

glGetProgramInfoLog_s programName = do
  logLength <- alloca $ \logLengthPtr -> do
    glGetProgramiv programName GL_INFO_LOG_LENGTH logLengthPtr
    peek logLengthPtr
  fmap T.decodeUtf8 $ allocaBytes (fromIntegral logLength) $ \logPtr -> do
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glGetProgramInfoLog_s programName = ...

Perhaps

glGetProgramInfoLogS programName = ...

Use camelCase
Open

glBufferData_null target size usage = glBufferData target size nullPtr usage
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glBufferData_null target size usage = ...

Perhaps

glBufferDataNull target size usage = ...

Use camelCase
Open

glBindAttribLocation_s :: GLuint -> GLuint -> T.Text -> IO ()
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glBindAttribLocation_s :: GLuint -> GLuint -> T.Text -> IO ()

Perhaps

glBindAttribLocationS :: GLuint -> GLuint -> T.Text -> IO ()

Use camelCase
Open

glBindAttribLocation_s programName index attributeName = B.useAsCString (T.encodeUtf8 attributeName) $ glBindAttribLocation programName index
Severity: Minor
Found in flaw-gl/Flaw/Graphics/OpenGL/FFI.hs by hlint

Found

glBindAttribLocation_s programName index attributeName = ...

Perhaps

glBindAttribLocationS programName index attributeName = ...

There are no issues that match your filters.

Category
Status