summaryrefslogtreecommitdiff
path: root/lib/Paths.hs
diff options
context:
space:
mode:
authorstuebinm2021-12-16 16:12:39 +0100
committerstuebinm2021-12-16 16:12:39 +0100
commit7c29b52da8e1d73b26c74f278cfc66bb0febed16 (patch)
tree8fd647052c2cec17f2e32f8b7d61180646ace66b /lib/Paths.hs
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/Paths.hs')
-rw-r--r--lib/Paths.hs2
1 files changed, 1 insertions, 1 deletions
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