Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,870
    • Issues 4,870
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 453
    • Merge requests 453
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #18880
Closed
Open
Created Oct 23, 2020 by Hjulle@trac-Hjulle

Enable -fwarn-incomplete-patterns by default

Motivation

Accidental partial pattern matching is a very common stumbling block for beginners and seasoned users alike. I think enabling the warning -fwarn-incomplete-patterns by default would mean less confusion for everyone.

For example, stackoverflow has over 200 questions from users that are confused by the runtime error: https://stackoverflow.com/search?q=%22Non-exhaustive+patterns%22+%5Bhaskell%5D

Proposal

Add -fwarn-incomplete-patterns to the list of warnings that are enabled by default.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking