
9 Jul
2008
9 Jul
'08
8:43 a.m.
On Wed, Jul 9, 2008 at 10:01 AM, Neil Mitchell
It seems that the qualified import syntax is a bit awkward. At the moment, its common to see:
import qualified Data.Map as M import Data.Map(Map)
i.e. import a module, give it an alias (M), and put some things in the current namespace (Map).
Incidentally, I sometimes find myself writing this: import Data.Map (Map) ; import qualified Data.Map as M It's not perfect, but at least it lines up with my other imports a little better. Stuart