Ticket #5948 (closed bug: fixed)
Parentheses needed when declaring a type synonym with ':
| Reported by: | goldfire | Owned by: | pcapriotti |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.6.1 |
| Component: | Compiler (Parser) | Version: | 7.5 |
| Keywords: | DataKinds | Cc: | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | GHC rejects valid program | Difficulty: | Unknown |
| Test Case: | polykinds/T5948 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
Consider the following code:
{-# LANGUAGE DataKinds, TypeOperators #-}
type Foo = (Int ': '[])
type Bar = Int ': '[]
The declaration for Foo compiles, while the declaration for Bar fails with a parse error on :.
This is clearly easy to work around, but I thought it was enough of an infelicity to be reported.
Change History
Note: See
TracTickets for help on using
tickets.
