haddock refactor of Dynamic #71
haskell-ci.yml
on: push
Annotations
1 error and 10 warnings
hlint
HLint failed with status: 1. Warning (1), Suggestion (8)
|
hlint:
src/NumHask/Array/Dynamic.hs#L1496
Suggestion in cycle in module NumHask.Array.Dynamic: Redundant bracket ▫︎ Found: "(`mod` (size a))" ▫︎ Perhaps: "(`mod` size a)"
|
hlint:
src/NumHask/Array/Dynamic.hs#L1745
Suggestion in transmitOp in module NumHask.Array.Dynamic: Redundant bracket ▫︎ Found: "(shape a) `List.isPrefixOf` (shape b)" ▫︎ Perhaps: "shape a `List.isPrefixOf` (shape b)"
|
hlint:
src/NumHask/Array/Dynamic.hs#L1745
Suggestion in transmitOp in module NumHask.Array.Dynamic: Redundant bracket ▫︎ Found: "(shape a) `List.isPrefixOf` (shape b)" ▫︎ Perhaps: "(shape a) `List.isPrefixOf` shape b"
|
hlint:
src/NumHask/Array/Dynamic.hs#L1746
Suggestion in transmitOp in module NumHask.Array.Dynamic: Redundant bracket ▫︎ Found: "(shape b) `List.isPrefixOf` (shape a)" ▫︎ Perhaps: "shape b `List.isPrefixOf` (shape a)"
|
hlint:
src/NumHask/Array/Dynamic.hs#L1746
Suggestion in transmitOp in module NumHask.Array.Dynamic: Redundant bracket ▫︎ Found: "(shape b) `List.isPrefixOf` (shape a)" ▫︎ Perhaps: "(shape b) `List.isPrefixOf` shape a"
|
hlint:
src/NumHask/Array/Dynamic.hs#L1890
Warning in invtri in module NumHask.Array.Dynamic: Functor law ▫︎ Found: "fmap (pow l) (fmap fromIntegral $ range [n])" ▫︎ Perhaps: "fmap (pow l . fromIntegral) (range [n])"
|
hlint:
src/NumHask/Array/Dynamic.hs#L1890
Suggestion in invtri in module NumHask.Array.Dynamic: Use <$> ▫︎ Found: "fmap fromIntegral $ range [n]" ▫︎ Perhaps: "fromIntegral <$> range [n]"
|
hlint:
src/NumHask/Array/Dynamic.hs#L1891
Suggestion in invtri in module NumHask.Array.Dynamic: Use head ▫︎ Found: "shape a !! 0" ▫︎ Perhaps: "head (shape a)"
|
hlint:
src/NumHask/Array/Shape.hs#L330
Suggestion in rotateIndex in module NumHask.Array.Shape: Redundant section ▫︎ Found: "((x + r) `mod`) (s List.!! d)" ▫︎ Perhaps: "(x + r) `mod` (s List.!! d)"
|
GHC 9.6 on ubuntu-latest:
src/NumHask/Array/Dynamic.hs#L8
unrecognised warning flag: -Wno-x-partial
|