Opened 5 years ago

Closed 5 years ago

#7781 closed bug (duplicate)

Dumb error message when trying to runghc a module with no 'main' function

Reported by: guest Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.6.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


$ runghc Log.hs


Not in scope: `main' Perhaps you meant `min' (imported from Prelude)

It really should say something like:

No main function found. Can't run a module with no `main'.

Change History (1)

comment:1 Changed 5 years ago by monoidal

Resolution: duplicate
Status: newclosed

Already reported as #7765.

Note: See TracTickets for help on using tickets.