Opened 10 years ago

Closed 10 years ago

Last modified 9 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: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

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 10 years ago.

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by igloo

Attachment: proposal-1126-1.patch added

comment:1 Changed 10 years ago by igloo

Description: modified (diff)

comment:2 Changed 10 years ago by igloo

Resolution: fixed
Status: newclosed

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 9 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:4 Changed 9 years ago by simonmar

Operating System: UnknownUnknown/Multiple
Note: See TracTickets for help on using tickets.