3 ms·
In another module, there's the boilerplate of importing Source and Dest.
by edflsafoiewq 7y ago
In another module, there's the boilerplate of importing Source and Dest.
- masklinn 7y agoThey get brought in alongside the functions. Especially given Haskell (sadly) defaults to unqualified import.
- Shoue 7y agoNot necessarily, you can use coerce or Newtype instances, so you'd import one thing to deal with all the boilerplate wrapper types in all the modules they come from. This is specific to Haskell, but you could mimic it in other languages.