Skip to content
  • Vladislav Zavialov's avatar
    Print the Type kind qualified when ambiguous (#20627) · 3d7e3d91
    Vladislav Zavialov authored and Marge Bot's avatar Marge Bot committed
    The Type kind is printed unqualified:
    	ghci> :set -XNoStarIsType
    	ghci> :k (->)
    	(->) :: Type -> Type -> Type
    
    This is the desired behavior unless the user has defined
    their own Type:
    	ghci> data Type
    
    Then we want to resolve the ambiguity by qualification:
    	ghci> :k (->)
    	(->) :: GHC.Types.Type -> GHC.Types.Type -> GHC.Types.Type
    3d7e3d91