Ticket #3102 (closed merge: fixed)
The impossible happened with implicit parameters
| Reported by: | Ashley Yakeley | Owned by: | igloo |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.12.1 |
| Component: | Compiler (Type checker) | Version: | 6.10.1 |
| Keywords: | Cc: | ||
| Operating System: | Linux | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | tyepcheck/should_fail/T3102 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
{-# OPTIONS -XImplicitParams -XRankNTypes #-}
module Bug where
t :: forall a. ((?p :: Int) => a) -> String
t _ = "Hello"
f :: (forall a. a -> String) -> Int
f _ = 3
result :: Int
result = f t
$ ghc -c Bug.hs ghc: panic! (the 'impossible' happened) (GHC version 6.10.1 for x86_64-unknown-linux): TcTyFuns.flattenType: unexpected PredType
Change History
Note: See
TracTickets for help on using
tickets.
