Stop! Tickets are now managed at GitHub.

Please enter new tickets, and find and edit existing tickets there:


Ticket #180 (reopened defect)

Opened 3 years ago

Last modified 9 months ago

GHCi tries to print infinite list (like [1..])

Reported by: nsinreal Owned by: dons
Priority: trivial Milestone:
Component: GHC Keywords:
Cc:

Description

GHCi mustn't try to print infinite lists. Maybe GHCi must print some warning for user

Change History

Changed 3 years ago by gregorycollins

  • status changed from new to closed
  • resolution set to invalid

Knowing whether a particular list value is infinite requires solving the halting problem, which is undecidable -- sorry.

Changed 9 months ago by sam

  • status changed from closed to reopened
  • resolution invalid deleted

GHCi should just stop printing after a certain (configurable) number of characters.

Note: See TracTickets for help on using tickets.