[Haskell-cafe] Illegal type def
philip.weaver at gmail.com
Sat Dec 1 22:03:39 EST 2007
Should work with glasgow extensions (-fglasgow-exts).
On Dec 1, 2007 6:43 PM, PR Stanley <prstanley at ntlworld.com> wrote:
> > type assoc k v = [(k, v)]
> works beautifully and everything makes sense.
> > type Assoc v = (Ord k) => [(k, v)]
> This doesn't work. Is there any wayof defining k as an element of
> type Ordinal. I could redefine k by putting Char or Int in its place.
> Why can't I be more general?
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe