Ticket #644 (closed bug: fixed)

Opened 7 years ago

Last modified 5 years ago

Non-exhaustive patterns in function zip_ty_env

Reported by: simonmar Owned by:
Priority: normal Milestone: 6.4.2
Component: Compiler (Type checker) Version: 6.4.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

The following code:

data T a where
    P :: L1 -> L2
data L1 = L1
data L2 = L2

Produces this panic:

bug.hs:1:0:
    Data constructor `P' returns type `L2' instead of its parent type
    When checking the data constructor:ghc-6.4.1: panic! (the `impossible' happened, GHC version 6.4.1):
        types/Type.lhs:(1107,0)-(1108,77): Non-exhaustive patterns in function zip_ty_env

Change History

Changed 7 years ago by simonpj

  • status changed from new to closed
  • resolution set to fixed

Fixed, thank you.

Simon

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.