Skip to content

Dims in dyn and fix #88

Dims in dyn and fix

Dims in dyn and fix #88

Triggered via push September 22, 2024 08:14
Status Failure
Total duration 5m 37s
Artifacts

haskell-ci.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 11 warnings
ormolu
Ormolu detected unformatted files
hlint
HLint failed with status: 1. Warning (14), Suggestion (45)
GHC 9.6 on ubuntu-latest: src/NumHask/Array/Shape.hs#L832
Not in scope: ‘List.!?’
GHC 9.6 on ubuntu-latest
Process completed with exit code 1.
hlint: src/NumHask/Array/Dynamic.hs#L665
Suggestion in colWise in module NumHask.Array.Dynamic: Redundant bracket ▫︎ Found: "rank a - (S.rank xs)" ▫︎ Perhaps: "rank a - S.rank xs"
hlint: src/NumHask/Array/Dynamic.hs#L725
Suggestion in drop in module NumHask.Array.Dynamic: Redundant bracket ▫︎ Found: "(getDim d (shape a)) - abs t" ▫︎ Perhaps: "getDim d (shape a) - abs t"
hlint: src/NumHask/Array/Dynamic.hs#L1504
Suggestion in cycle in module NumHask.Array.Dynamic: Redundant bracket ▫︎ Found: "(`mod` (size a))" ▫︎ Perhaps: "(`mod` size a)"
hlint: src/NumHask/Array/Dynamic.hs#L1747
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#L1747
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#L1748
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#L1748
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#L1899
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#L1899
Suggestion in invtri in module NumHask.Array.Dynamic: Use <$> ▫︎ Found: "fmap fromIntegral $ range [n]" ▫︎ Perhaps: "fromIntegral <$> range [n]"
hlint: src/NumHask/Array/Dynamic.hs#L1900
Suggestion in invtri in module NumHask.Array.Dynamic: Use head ▫︎ Found: "shape a !! 0" ▫︎ Perhaps: "head (shape a)"
GHC 9.6 on ubuntu-latest: src/NumHask/Array/Dynamic.hs#L8
unrecognised warning flag: -Wno-x-partial