Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x-partial warning by GHC 9.8 #516

Open
andreasabel opened this issue Sep 30, 2023 · 0 comments
Open

x-partial warning by GHC 9.8 #516

andreasabel opened this issue Sep 30, 2023 · 0 comments

Comments

@andreasabel
Copy link
Contributor

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
   |                                                    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant