[Haskell-cafe] Proposal: Shorter Import Syntax

Malcolm Wallace malcolm.wallace at me.com
Sun Jun 7 07:32:29 UTC 2015

>> On Sat, Jun 6, 2015 at 10:26 AM, Vlatko Basic <vlatko.basic at gmail.com> wrote:
>>    import Data.Map (Map)
>>    andAs M (lengthy,
>>    list)
>> I much prefer a syntax with a bit more words, like this one. The original proposal
>> is simply impossible to understand without reading a manual. It has at least two
>> equally valid interpretations.

Just to be even more explicit, at the cost of a tiny bit more syntax, how about the following proposal?

    import Data.Map (Map)
    import qualified Data.Map as M (lengthy,list)


More information about the Haskell-Cafe mailing list