Stop! Tickets are now managed at GitHub.

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

Ticket #180 (reopened defect)

Opened 6 years ago

Last modified 4 years ago

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

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


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

Change History

Changed 6 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 4 years 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.