Re:Be wary of functions which take several parameters of the...
by edflsafoiewq on Friday September 27, 2019 @07:10AM
(#21090579)
In another module, there's the boilerplate of importing Source and Dest.
[ Parent
| on HN ]
Re:Be wary of functions which take several parameters of the...
by masklinn on Friday September 27, 2019 @07:17AM
(#21090622)
They get brought in alongside the functions. Especially given Haskell (sadly) defaults to unqualified import.
Re:Be wary of functions which take several parameters of the...
by Shoue on Friday September 27, 2019 @08:10AM
(#21090968)
Not 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.