Skip to content
GitLab
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 5,252
    • Issues 5,252
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 576
    • Merge requests 576
  • 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 CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #13066
Closed
Open
Issue created Jan 05, 2017 by Edward Z. Yang@ezyangDeveloper

Backpack doesn't check for fixity consistency

This should fail, but instead it prints 7.

unit p where
    signature A where
        infixl 6 `mul`
        infixl 7 `plu`
        mul :: Int -> Int -> Int
        plu :: Int -> Int -> Int
    module P where
        import A
        x = 2 `mul` 3 `plu` 1
unit i where
    module A where
        infixl 7 `mul`
        infixl 6 `plu`
        mul :: Int -> Int -> Int
        mul x y = x * y
        plu :: Int -> Int -> Int
        plu x y = x + y
unit main where
    dependency p[A=i:A]
    module Main where
        import P
        main = print x
Trac metadata
Trac field Value
Version 8.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler (Type checker)
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking