Skip to content

Commit 52d1967

Browse files
committed
Parse multiline LANGUAGE pragmas.
1 parent a672536 commit 52d1967

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Language/Haskell/Exts/InternalParser.ly

+2-2
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ TODO: Yuck, this is messy, needs fixing in the AST!
344344

345345

346346
> conids :: { ([Name L],[S]) }
347-
> : conid ',' conids { ($1 : fst $3, $2 : snd $3) }
348-
> | conid { ([$1],[]) }
347+
> : conids ',' conid { (fst $1 ++ [$3], snd $1 ++ [$2]) }
348+
> | optsemis conid { ([$2],[]) }
349349

350350
-----------------------------------------------------------------------------
351351
Module Header

0 commit comments

Comments
 (0)