> But what type does the selector 'item' have? Phil, Mark and Jeff think: > > item :: Ord a => Tree a -> a This looks correct to me, too. If an order is needed to construct a tree, say a search tree, the very same order is (or may be) needed to select an item, e.g. by searching! Christian
- Contexts on data type declarations Simon Peyton-Jones
- Re: Contexts on data type declarations Philip Wadler
- RE: Contexts on data type declarations Simon Peyton-Jones
- Re: Contexts on data type declarations Philip Wadler
- RE: Contexts on data type declarations Mark P Jones
- RE: Contexts on data type declarations Simon Peyton-Jones
- Re: Contexts on data type declarations Erik Meijer
- RE: Contexts on data type declarations Christian Maeder
- RE: Contexts on data type declarations Koen Claessen
- Re: Contexts on data type declarations Olaf Chitil
- Re: Contexts on data type declarations Christian Maeder
- Re: Contexts on data type declarations Koen Claessen
- Re: Contexts on data type declarations Fergus Henderson