Ticket #32 (closed bug report: fixed)

Opened 6 years ago

Last modified 6 years ago

Parse failure ("Illegal class assertion") on parenthesised single-item class contexts

Reported by: ganesh Owned by: nibro
Priority: major Milestone: Full code support
Component: parser Version: 0.5.3
Keywords: Cc: ganesh.sittampalam@…

Description

This is in 0.5.3 (shouldn't that be listed in the versions field?)

module Test where

foo :: (Eq a) => a -> a
foo x = x
ParseFailed (SrcLoc {srcFilename = "test.hs", srcLine = 3, srcColumn = 15}) "Illegal class assertion"

If I remove the () around Eq a, the problem goes away.

Change History

Changed 6 years ago by nibro

  • status changed from new to assigned
  • version set to 0.5.3

It should be listed yes, I've updated the trac settings and set this to the proper version.

This should be an easy fix.

Changed 6 years ago by nibro

  • status changed from assigned to closed
  • resolution set to fixed

It certainly wasn't hard to fix, just a mental lapse when writing the code for checking assertions. Case closed.

Note: See TracTickets for help on using tickets.