Showing 159 of 159 total issues
Eta reduce Open
Open
diff expr symbol = (lift_basicsym_binaryop basic_diff_ffi) expr symbol
- Read upRead up
- Exclude checks
Found
diff expr symbol
= (lift_basicsym_binaryop basic_diff_ffi) expr symbol
Perhaps
diff = (lift_basicsym_binaryop basic_diff_ffi)
Redundant bracket Open
Open
instance Matrix (DenseMatrix) where
- Read upRead up
- Exclude checks
Found
(DenseMatrix)
Perhaps
DenseMatrix
Unused LANGUAGE pragma Open
Open
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
- Read upRead up
- Exclude checks
Found
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
Perhaps
Unused LANGUAGE pragma Open
Open
{-# LANGUAGE FunctionalDependencies #-}
- Read upRead up
- Exclude checks
Found
{-# LANGUAGE FunctionalDependencies #-}
Perhaps
Applying this change:
- may require
{-# LANGUAGE MultiParamTypeClasses #-}
adding to the top of the file
Unused LANGUAGE pragma Open
Open
{-# LANGUAGE RecordWildCards #-}
- Read upRead up
- Exclude checks
Found
{-# LANGUAGE RecordWildCards #-}
Perhaps
Applying this change:
- may require
{-# LANGUAGE DisambiguateRecordFields #-}
adding to the top of the file
Unused LANGUAGE pragma Open
Open
{-# LANGUAGE RecordWildCards #-}
- Read upRead up
- Exclude checks
Found
{-# LANGUAGE RecordWildCards #-}
Perhaps
Applying this change:
- may require
{-# LANGUAGE DisambiguateRecordFields #-}
adding to the top of the file
Unused LANGUAGE pragma Open
Open
{-# LANGUAGE RecordWildCards #-}
- Read upRead up
- Exclude checks
Found
{-# LANGUAGE RecordWildCards #-}
Perhaps
Applying this change:
- may require
{-# LANGUAGE DisambiguateRecordFields #-}
adding to the top of the file
Use fewer imports Open
Open
import Control.Monad -- for foldM
- Read upRead up
- Exclude checks
Found
import Control.Monad
import Control.Monad
Perhaps
import Control.Monad
Eta reduce Open
Open
intToCInt i = toEnum i
- Read upRead up
- Exclude checks
Found
intToCInt i = toEnum i
Perhaps
intToCInt = toEnum
Avoid lambda Open
Open
vecbasic_push_back vec sym = with2 vec sym (\v p ->vecbasic_push_back_ffi v p)
- Read upRead up
- Exclude checks
Found
\ v p -> vecbasic_push_back_ffi v p
Perhaps
vecbasic_push_back_ffi
Eta reduce Open
Open
with (DenseMatrix p) f = withForeignPtr p f
- Read upRead up
- Exclude checks
Found
with (DenseMatrix p) f = withForeignPtr p f
Perhaps
with (DenseMatrix p) = withForeignPtr p
Unused LANGUAGE pragma Open
Open
{-# LANGUAGE RecordWildCards #-}
- Read upRead up
- Exclude checks
Found
{-# LANGUAGE RecordWildCards #-}
Perhaps
Applying this change:
- may require
{-# LANGUAGE DisambiguateRecordFields #-}
adding to the top of the file
Unused LANGUAGE pragma Open
Open
{-# LANGUAGE FunctionalDependencies #-}
- Read upRead up
- Exclude checks
Found
{-# LANGUAGE FunctionalDependencies #-}
Perhaps
Applying this change:
- may require
{-# LANGUAGE MultiParamTypeClasses #-}
adding to the top of the file
Unused LANGUAGE pragma Open
Open
{-# LANGUAGE TypeApplications #-}
- Read upRead up
- Exclude checks
Found
{-# LANGUAGE TypeApplications #-}
Perhaps
Unused LANGUAGE pragma Open
Open
{-# LANGUAGE FunctionalDependencies #-}
- Read upRead up
- Exclude checks
Found
{-# LANGUAGE FunctionalDependencies #-}
Perhaps
Applying this change:
- may require
{-# LANGUAGE MultiParamTypeClasses #-}
adding to the top of the file
Redundant as-pattern Open
Open
error @ _ -> throwIO error
- Read upRead up
- Exclude checks
Found
error@_
Perhaps
error
Redundant return Open
Open
mkForeignPtr cons des = do
rawptr <- cons
finalized <- newForeignPtr des rawptr
return finalized
- Read upRead up
- Exclude checks
Found
do rawptr <- cons
finalized <- newForeignPtr des rawptr
return finalized
Perhaps
do rawptr <- cons
newForeignPtr des rawptr
Use fewer imports Open
Open
import Control.Monad -- for foldM
- Read upRead up
- Exclude checks
Found
import Control.Monad
import Control.Monad
Perhaps
import Control.Monad
Use camelCase Open
Open
basic_pow :: BasicSym -> BasicSym -> BasicSym
- Read upRead up
- Exclude checks
Found
basic_pow :: BasicSym -> BasicSym -> BasicSym
Perhaps
basicPow :: BasicSym -> BasicSym -> BasicSym
Use camelCase Open
Open
densematrix_new_zeros :: forall r c. (KnownNat r, KnownNat c) => DenseMatrix r c
- Read upRead up
- Exclude checks
Found
densematrix_new_zeros ::
forall r c. (KnownNat r, KnownNat c) => DenseMatrix r c
Perhaps
densematrixNewZeros ::
forall r c. (KnownNat r, KnownNat c) => DenseMatrix r c