[GHC] #12432: TypeInType: open type family application as type family return kind fails to compile
GHC
ghc-devs at haskell.org
Mon Jul 25 19:13:54 UTC 2016
#12432: TypeInType: open type family application as type family return kind fails
to compile
-------------------------------------+-------------------------------------
Reporter: j6carey | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
(Type checker) |
Keywords: | Operating System: Linux
Architecture: | Type of failure: GHC rejects
Unknown/Multiple | valid program
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
With TypeInType enabled, I can use a closed type family to compute the
return kind of a type family from its arguments. But an equivalent open
type family used in the same way triggers a compilation failure, as if the
relevant instance of that open type family were not considered. (Of
course, there may be some subtle prohibition of which I am not aware at
the present time.) I will attach a test case.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12432>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list