[GHC] #666: Collection hierarchy proposal
GHC
trac at galois.com
Mon Jan 30 06:29:51 EST 2006
#666: Collection hierarchy proposal
-------------------------------+--------------------------------------------
Reporter: jpbernardy | Owner: jpbernardy
Type: feature request | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 6.4.1
Severity: normal | Resolution:
Keywords: Data collections | Os: Unknown
Difficulty: Unknown | Architecture: Unknown
-------------------------------+--------------------------------------------
Comment (by guest):
What about removing all reference to lists (plain type []) from the
interface. E.g.
{{{
fromList :: [i] -> c
}}}
should be something like
{{{
fromCollection :: Collection d j i -> c
}}}
Since we plan to have
{{{
instance Collection [a] a a
}}}
this should be possible.
Same thing for toList. In fact, we don't need toList,
since it *is* fromCollection, right?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/666>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list