Experiments with SNats #82
haskell-ci.yml
on: push
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)"
|
|
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
|