Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Missing parens around prefix * even with NoStarIsType #925

@harpocrates

Description

@harpocrates

We have some logic in wrapInfix to try to detect the now-deprecated * kind. This logic just checks that the string representation matches (although it fails to check the unicode case) and that the name is in the TcClsName namespace.

Yet this catches more operators than it should.

{-# LANGUAGE TypeOperators, NoStarIsType #-}
module GiveMeMyParens where
type (*) a = (,) a

Note that the output is missing parens around the *:

screen shot 2018-08-29 at 12 48 58 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions