
#11376: Inconsistent specified type variables among functions and datatypes/classes when using -XTypeApplications -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (Type | Version: 8.1 checker) | Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): This ''might'' also affect data families too, but maybe not, since you have to specify the kind in the data family declaration: {{{ $ /opt/ghc/head/bin/ghci GHCi, version 8.1.20160106: http://www.haskell.org/ghc/ :? for help λ> :set -fprint-explicit-kinds -XTypeInType -XTypeApplications -XTypeFamilies λ> data family Fam (a :: k) λ> data instance Fam a = FamCon λ> famCon :: Fam a; famCon = FamCon λ> :t famCon famCon :: forall k (a :: k). Fam k a λ> :t famCon @Int famCon @Int :: Fam * Int λ> :t FamCon FamCon :: forall k (a :: k). Fam k a λ> :t FamCon @Int FamCon @Int :: Fam Int a }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11376#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler