http-client
http-client copied to clipboard
`x-partial` warning by GHC 9.8
publicsuffixlist/Network/PublicSuffixList/Lookup.hs:69:63: warning: [GHC-63394] [-Wx-partial]
In the use of ‘tail’
(imported from Prelude, but defined in GHC.List):
"This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty."
|
69 | output _ (OffEnd True x) = Just $ T.intercalate "." $ tail $ T.splitOn "." x
|