|
[ ghc-Bugs-1094244 ] GADTs Syntax Infelicity with {;}: msg#00012lang.haskell.glasgow.bugs
Bugs item #1094244, was opened at 2005-01-01 23:54 Message generated for change (Settings changed) made by simonpj You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1094244&group_id=8032 Category: Compiler (Parser) Group: 6.4 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Ashley Yakeley (ashley-y) Assigned to: Nobody/Anonymous (nobody) Summary: GADTs Syntax Infelicity with {;} Initial Comment: 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 } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1094244&group_id=8032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: [Fwd: bug in argument processing in hsc2hs], Simon Marlow |
|---|---|
| Next by Date: | [ ghc-Bugs-1097046 ] class context restrictions in GADT types not assumed, SourceForge.net |
| Previous by Thread: | [ ghc-Bugs-1094244 ] GADTs Syntax Infelicity with {;}, SourceForge.net |
| Next by Thread: | Again: Runtime system doesn't notice changed file descriptor status, Volker Wysk |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |