Hey #Haskell friends, I occasionally write something like this:

import Data.Map (Map)

import qualified Data.Map as Map

Essentially, I want to use "Map" unqualified as a type (e.g. Map Text Text) (as opposed to the qualified Map.Map Text Text), but I'm fine with invoking the Map module's functions qualified (e.g. Map.empty). Is there a terser way I can write this (i.e. not two imports)?

Reply to this note

Please Login to reply.

Discussion

No replies yet.