snoyberg / classy-prelude

A typeclass-based Prelude.
108 stars 15 forks source link

toList and fromList on Data.Map #65

Closed andrewthad closed 10 years ago

andrewthad commented 10 years ago

toList and fromList don't seem to do the right thing to a Map. My programs won't compile. The error seems to indicate that an array of tuples isn't being produced but an array of Elements.

snoyberg commented 10 years ago

It's generally helpful to include actual error messages in a report like this.

You probably are looking for mapToList and mapFromList.

andrewthad commented 10 years ago

You are correct. I missed the re-export of Core Prelude and couldn't find the right function.