Cleanup compiler warnings
This commit is contained in:
+1
-105
@@ -1,105 +1 @@
|
||||
/home/justin/Haskell/loop/src/Polyhedra.hs:68:5: warning: [GHC-62161] [-Wincomplete-uni-patterns]
|
||||
Pattern match(es) are non-exhaustive
|
||||
In a pattern binding:
|
||||
Patterns of type ‘[Point3]’ not matched:
|
||||
[]
|
||||
[_]
|
||||
[_, _]
|
||||
|
|
||||
68 | (a:b:c:_) = xs
|
||||
| ^^^^^^^^^^^^^^
|
||||
/home/justin/Haskell/loop/src/Polyhedra/Geodesic.hs:59:5: warning: [GHC-62161] [-Wincomplete-uni-patterns]
|
||||
Pattern match(es) are non-exhaustive
|
||||
In a pattern binding:
|
||||
Patterns of type ‘[[a]]’ not matched:
|
||||
[]
|
||||
[_]
|
||||
|
|
||||
59 | (f0:f1:fs) = rotateTo ((== n) . head) vss
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
/home/justin/Haskell/loop/src/SimpleTrie.hs:36:13: warning: [GHC-62161] [-Wincomplete-uni-patterns]
|
||||
Pattern match(es) are non-exhaustive
|
||||
In a pattern binding: Patterns of type ‘[a]’ not matched: []
|
||||
|
|
||||
36 | let (z : zs) = xs
|
||||
| ^^^^^^^^^^^^^
|
||||
/home/justin/Haskell/loop/src/SimpleTrie.hs:45:13: warning: [GHC-62161] [-Wincomplete-uni-patterns]
|
||||
Pattern match(es) are non-exhaustive
|
||||
In a pattern binding: Patterns of type ‘[(a, c)]’ not matched: []
|
||||
|
|
||||
45 | let ((z1, z2) : zs) = xs
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
/home/justin/Haskell/loop/src/Dodge/WdP2f.hs:12:13: warning: [GHC-62161] [-Wincomplete-uni-patterns]
|
||||
Pattern match(es) are non-exhaustive
|
||||
In a pattern binding:
|
||||
Patterns of type ‘Maybe (Point2, Point2)’ not matched: Nothing
|
||||
|
|
||||
12 | let Just (a, b) = w ^? cWorld . lWorld . doors . ix drid . drPos
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
/home/justin/Haskell/loop/src/Dodge/Debug/Picture.hs:118:5: warning: [GHC-62161] [-Wincomplete-uni-patterns]
|
||||
Pattern match(es) are non-exhaustive
|
||||
In a pattern binding: Patterns of type ‘[Point2]’ not matched: []
|
||||
|
|
||||
118 | (p : ps) =
|
||||
| ^^^^^^^^^^...
|
||||
/home/justin/Haskell/loop/src/Dodge/Debug/Picture.hs:302:5: warning: [GHC-62161] [-Wincomplete-uni-patterns]
|
||||
Pattern match(es) are non-exhaustive
|
||||
In a pattern binding: Patterns of type ‘[Point2]’ not matched: []
|
||||
|
|
||||
302 | (x : xs) = w ^. wCam . camBoundBox
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
/home/justin/Haskell/loop/src/RandomHelp.hs:36:9: warning: [GHC-62161] [-Wincomplete-uni-patterns]
|
||||
Pattern match(es) are non-exhaustive
|
||||
In a pattern binding:
|
||||
Patterns of type ‘([a], [a])’ not matched: (_, [])
|
||||
|
|
||||
36 | let (zs, w : ws) = splitAt i ys
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
/home/justin/Haskell/loop/src/RandomHelp.hs:51:17: warning: [GHC-62161] [-Wincomplete-uni-patterns]
|
||||
Pattern match(es) are non-exhaustive
|
||||
In a pattern binding:
|
||||
Patterns of type ‘([b], [b])’ not matched: (_, [])
|
||||
|
|
||||
51 | let (as, b : bs) = splitAt rand ys
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
/home/justin/Haskell/loop/src/Dodge/HeldUse.hs:177:5: warning: [GHC-62161] [-Wincomplete-uni-patterns]
|
||||
Pattern match(es) are non-exhaustive
|
||||
In a pattern binding:
|
||||
Patterns of type ‘([Float], StdGen)’ not matched:
|
||||
([], _)
|
||||
([_], _)
|
||||
([_, _], _)
|
||||
([_, _, _], _)
|
||||
|
|
||||
177 | (a : b : c : d : _, g) = runState thestate $ _randGen w -- randomRs (2, 20) (_randGen w)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
/home/justin/Haskell/loop/src/Tile.hs:36:5: warning: [GHC-62161] [-Wincomplete-uni-patterns]
|
||||
Pattern match(es) are non-exhaustive
|
||||
In a pattern binding:
|
||||
Patterns of type ‘[Point2]’ not matched:
|
||||
[]
|
||||
[_]
|
||||
|
|
||||
36 | (c:d:_) = poly
|
||||
| ^^^^^^^^^^^^^^
|
||||
/home/justin/Haskell/loop/src/Dodge/Room/RezBox.hs:54:22: warning: [GHC-47082] [-Woperator-whitespace-ext-conflict]
|
||||
The prefix use of a ‘$’ would denote an untyped splice
|
||||
were the TemplateHaskell extension enabled.
|
||||
Suggested fix: Add whitespace after the ‘$’.
|
||||
|
|
||||
54 | shuffleLinks $(roomRectAutoLinks w h){_rmPmnts = []}
|
||||
| ^
|
||||
/home/justin/Haskell/loop/src/Dodge/Room/RezBox.hs:120:44: warning: [GHC-47082] [-Woperator-whitespace-ext-conflict]
|
||||
The prefix use of a ‘$’ would denote an untyped splice
|
||||
were the TemplateHaskell extension enabled.
|
||||
Suggested fix: Add whitespace after the ‘$’.
|
||||
|
|
||||
120 | let n = length $ filter bottomEdgeTest $_rmLinks centralRoom
|
||||
| ^
|
||||
/home/justin/Haskell/loop/src/Dodge/Room/RezBox.hs:122:29: warning: [GHC-47082] [-Woperator-whitespace-ext-conflict]
|
||||
The prefix use of a ‘$’ would denote an untyped splice
|
||||
were the TemplateHaskell extension enabled.
|
||||
Suggested fix: Add whitespace after the ‘$’.
|
||||
|
|
||||
122 | tToBTree "rezBoxes" $treeFromTrunk [rezBox thecol, door] $
|
||||
| ^
|
||||
All good (596 modules, at 10:48:32)
|
||||
|
||||
Reference in New Issue
Block a user