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)?

Follow

@j3rn There's a preprocessor, but IMO that's not worth the fuss.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.