Skip to content

Experiments with SNats #82

Experiments with SNats

Experiments with SNats #82

Triggered via push September 8, 2024 01:52
Status Failure
Total duration 9m 22s
Artifacts

haskell-ci.yml

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

Annotations

2 errors and 13 warnings
ormolu
Ormolu detected unformatted files
hlint
HLint failed with status: 1. Warning (15), Suggestion (33)
hlint: src/NumHask/Array/Dynamic.hs#L726
Suggestion in drop in module NumHask.Array.Dynamic: Redundant bracket ▫︎ Found: "(S.unsafeGetIndex d (shape a)) - abs t" ▫︎ Perhaps: "S.unsafeGetIndex d (shape a) - abs t"
hlint: src/NumHask/Array/Dynamic.hs#L1506
Suggestion in cycle in module NumHask.Array.Dynamic: Redundant bracket ▫︎ Found: "(`mod` (size a))" ▫︎ Perhaps: "(`mod` size a)"
hlint: src/NumHask/Array/Dynamic.hs#L1755
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#L1755
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#L1756
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#L1756
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#L1900
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#L1900
Suggestion in invtri in module NumHask.Array.Dynamic: Use <$> ▫︎ Found: "fmap fromIntegral $ range [n]" ▫︎ Perhaps: "fromIntegral <$> range [n]"
hlint: src/NumHask/Array/Dynamic.hs#L1901
Suggestion in invtri in module NumHask.Array.Dynamic: Use head ▫︎ Found: "shape a !! 0" ▫︎ Perhaps: "head (shape a)"
hlint: src/NumHask/Array/Fixed.hs#L823
Suggestion in takeB in module NumHask.Array.Fixed: Avoid lambda ▫︎ Found: "\\ s\n -> modifyDim\n (valueOf @d)\n (\\ x -> x + (unsafeGetIndex (valueOf @d) (shape a)) - (valueOf @t))\n s" ▫︎ Perhaps: "modifyDim\n (valueOf @d)\n (\\ x -> x + (unsafeGetIndex (valueOf @d) (shape a)) - (valueOf @t))"
GHC 9.6 on ubuntu-latest: src/NumHask/Array/Dynamic.hs#L8
unrecognised warning flag: -Wno-x-partial
GHC 9.6 on ubuntu-latest: src/NumHask/Array/Fixed.hs#L2381
Pattern match(es) are non-exhaustive
GHC 9.6 on ubuntu-latest: src/NumHask/Array/Fixed.hs#L2384
Pattern match(es) are non-exhaustive