Opened 9 years ago

Closed 9 years ago

Last modified 4 weeks ago

#286 closed bug (Fixed)

GADTs Syntax Infelicity with {;}

Reported by: ashley-y Owned by: nobody
Priority: normal Milestone:
Component: Compiler (Parser) Version: 6.4
Keywords: Cc:
Operating System: Architecture:
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

GHC doesn't like semicolons at the end of GADT constructor lists:

data Foo a where
{
  BoolFoo :: Bool -> Foo Bool;
  IntFoo :: Int -> Foo Int;
}

Workaround: remove the last semicolon:

data Foo a where
{
  BoolFoo :: Bool -> Foo Bool;
  IntFoo :: Int -> Foo Int
}

Change History (1)

comment:1 Changed 9 years ago by simonpj

  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.