Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#1126 closed proposal (fixed)

Add Data.String, containing IsString(fromString), to base

Reported by: igloo Owned by:
Priority: normal Milestone: Not GHC
Component: libraries/base Version: 6.6
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description (last modified by igloo)

Proposal to create a new module Data.String, containing IsString(fromString), to the base package. This would be used by the overloaded strings extension (-foverloaded-strings in GHC).

Deadline: 28 Feb 2007

Attachments (1)

proposal-1126-1.patch (45.5 KB) - added by igloo 8 years ago.

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by igloo

comment:1 Changed 8 years ago by igloo

  • Description modified (diff)

comment:2 Changed 8 years ago by igloo

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

David Roundy proposed adding Eq as a requirement for the IsString class so pattern matching wouldn't need an Eq constraint, but Lennart Augustsson pointed out that you may wish to use IsString types for which Eq cannot be (usefully) defined, such as an AST type he has.

Neil Mitchell asked about adding a toString function to the class. Lennart Augustsson pointed out that Num has fromInteger but not toInteger. Presumably toString too could not be usefully defined for his AST type.

Applied:

* Add Data.String, containing IsString(fromString); trac proposal #1126
This is used by the overloaded strings extension (-foverloaded-strings in GHC).

comment:3 Changed 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:4 Changed 6 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.