J3RN :fedora: :elixir: :emacs: on Nostr: Hey #Haskell friends, I occasionally write something like this: import Data.Map (Map) ...
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)?
Published at
2024-10-18 03:10:34Event JSON
{
"id": "320e1b522bc41403e7118d5e29deb94cfdf24724ece7c25fd91ca757d5f16f19",
"pubkey": "eebd14d82c7521a8a88dc84281fb4f1441ac71d0241f4e0dfa3f5058a1a076b0",
"created_at": 1729221034,
"kind": 1,
"tags": [
[
"t",
"haskell"
],
[
"proxy",
"https://fosstodon.org/users/j3rn/statuses/113326229730916405",
"activitypub"
]
],
"content": "Hey #Haskell friends, I occasionally write something like this:\n\nimport Data.Map (Map)\nimport qualified Data.Map as Map\n\nEssentially, 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)?",
"sig": "c14021415541a8fa0bf15bcf66b0bfa7db1cf1b4a0a12d10542e1a2695c00b328f6d9bf88fae0859880484765f3ef11d2ba96a7af300fcf9e6288f457938396c"
}