Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
5501 commits behind the upstream repository.
  • sheaf's avatar
    584cd5ae
    Don't allow Float#/Double# literal patterns · 584cd5ae
    sheaf authored and Marge Bot's avatar Marge Bot committed
      This patch does the following two things:
    
        1. Fix the check in Core Lint to properly throw an error when it
           comes across Float#/Double# literal patterns. The check
           was incorrect before, because it expected the type to be
           Float/Double instead of Float#/Double#.
    
        2. Add an error in the parser when the user writes a floating-point
           literal pattern such as `case x of { 2.0## -> ... }`.
    
      Fixes #21115
    584cd5ae
    History
    Don't allow Float#/Double# literal patterns
    sheaf authored and Marge Bot's avatar Marge Bot committed
      This patch does the following two things:
    
        1. Fix the check in Core Lint to properly throw an error when it
           comes across Float#/Double# literal patterns. The check
           was incorrect before, because it expected the type to be
           Float/Double instead of Float#/Double#.
    
        2. Add an error in the parser when the user writes a floating-point
           literal pattern such as `case x of { 2.0## -> ... }`.
    
      Fixes #21115
Code owners
Assign users and groups as approvers for specific file changes. Learn more.