#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 Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:


$ 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 13 months ago by monoidal

  • Resolution set to duplicate
  • Status changed from new to closed

Already reported as #7765.

Note: See TracTickets for help on using tickets.