http-client icon indicating copy to clipboard operation
http-client copied to clipboard

`x-partial` warning by GHC 9.8

Open andreasabel opened this issue 2 years ago • 0 comments

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
   |                                                    

andreasabel avatar Sep 30 '23 11:09 andreasabel