summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorstuebinm2021-12-16 16:12:39 +0100
committerstuebinm2021-12-16 16:12:39 +0100
commit7c29b52da8e1d73b26c74f278cfc66bb0febed16 (patch)
tree8fd647052c2cec17f2e32f8b7d61180646ace66b /lib
parent9e5ecf2bd3be27be6e8d1dd9f0bf8d80cf1eaa30 (diff)
fixed some warnings (and disabled others)
So far i've never found an instance of -Wname-shadowing telling me anything useful, so it's disabled now, and most of the other trivial ones are fixed. (I assume this means I'll need -Wname-shadowing in about a day or two to find some bug ...)
Diffstat (limited to 'lib')
-rw-r--r--lib/CheckMap.hs2
-rw-r--r--lib/Paths.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CheckMap.hs b/lib/CheckMap.hs
index 0fe76ba..ba92d6a 100644
--- a/lib/CheckMap.hs
+++ b/lib/CheckMap.hs
@@ -161,7 +161,7 @@ checkLayerRec config depth layers =
-- human-readable lint output, e.g. for consoles
instance PrettyPrint (Level, MapResult) where
- prettyprint (level, mapResult) = if complete == ""
+ prettyprint (_, mapResult) = if complete == ""
then " all good!\n" else complete
where
complete = T.concat $ prettyGeneral
diff --git a/lib/Paths.hs b/lib/Paths.hs
index 7fae0df..f72874f 100644
--- a/lib/Paths.hs
+++ b/lib/Paths.hs
@@ -71,7 +71,7 @@ isOldStyle (Path _ text frag) = path =~ ("{<.+>*}" :: Text)
_ -> text
getExtension :: RelPath -> Text
-getExtension (Path _ text frag) = case length splitted of
+getExtension (Path _ text _) = case length splitted of
0 -> ""
_ -> last splitted
where splitted = T.splitOn "." text