Opened 3 years ago

Closed 3 years ago

#9609 closed bug (duplicate)

GHCi gives overly specific error message for unknown constructor

Reported by: dfeuer Owned by:
Priority: normal Milestone: 7.10.1
Component: GHCi Version: 7.8.3
Keywords: Cc: hvr
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: #9881 Differential Rev(s):
Wiki Page:

Description

What happens:

Prelude> :i Fish

Top level: Not in scope: data constructor ‘Fish’

This is potentially confusing because :i can be used for type constructors and classes, as well as data constructors. What I think should happen:

Prelude> :i Fish

Top level: Not in scope: constructor or class ‘Fish’

Change History (2)

comment:1 Changed 3 years ago by thomie

Cc: hvr added
Component: CompilerGHCi
Version: 7.8.27.8.3

comment:2 Changed 3 years ago by thomie

Milestone: 7.10.1
Resolution: duplicate
Status: newclosed

Fixed in 7.10.

Note: See TracTickets for help on using tickets.