
#10713: Type family not reducing over data family -------------------------------------+------------------------------------- Reporter: acowley | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 (Type checker) | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------+------------------------------------- Given this code, {{{ type family TEq t s where TEq t t = 'True TEq t s = 'False data family T a }}} I expected this GHCi interaction to reduce: `:kind! TEq (T Int) (T Bool)` But it does not. It does reduce (to `'True`) if you instead ask, `:kind! TEq (T Int) (T Int)` Tested on GHC 7.10.2 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10713 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler