logo       

Re: [GHC] #666: Collection hierarchy proposal: msg#00181

lang.haskell.glasgow.bugs

Subject: Re: [GHC] #666: Collection hierarchy proposal

#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_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise