[GHC] #9977: Nicer imports
GHC
ghc-devs at haskell.org
Mon Jan 12 12:12:06 UTC 2015
#9977: Nicer imports
-------------------------------------+-------------------------------------
Reporter: tolysz | Owner:
Type: feature | Status: new
request | Milestone:
Priority: lowest | Version: 7.11
Component: Compiler | Operating System: Unknown/Multiple
(Parser) | Type of failure: None/Unknown
Keywords: imports | Blocked By:
Architecture: | Related Tickets:
Unknown/Multiple |
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Hi,
I wonder if we could have
{{{#!hs
import
Data
A
B (ba, bb, bc)
C as C
C1 as C1 (ca,cb,cc)
D qualified
E as E qualified
F as F qualified (fa, fb, fc)
Libs.Other
-- Data.E qualified as E -- both valid
-- Data.F qualified as F (fa, fb, fc)
}}}
to desugar to
{{{#!hs
import Data.A
import Data.B (ba, bb, bc)
import Data.C as C
import qualified Data.D
import qualified Data.E as E
import qualified Data.F as F (fa, fb, fc)
import Libs.Other
}}}
so we could make syntax more dry?
What it does if there is indentation it uses previous levels as prefix
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9977>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list