[Haskell-cafe] Proposal: Shorter Import Syntax

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Sun Jun 7 01:03:43 UTC 2015


On 7 June 2015 at 09:20, Ivan Lazar Miljenovic
<ivan.miljenovic at gmail.com> wrote:
> On 7 June 2015 at 08:21, Sven Panne <svenpanne at gmail.com> wrote:
>> That's exactly what I'm asking for: A new {-# LANGUAGE FunkyImports #-}
>> pragma (name to be decided ;-), which must be mentioned in a cabal file's
>> "extension:" field
>> (https://www.haskell.org/cabal/users-guide/developing-packages.html#creating-a-package).
>> Failing to mention a language extension is just as wrong as declaring wrong
>> bounds.
>
> I was under the impression that the "extension:" fields were only used
> for extensions that were used by every module in the package.  From
> that link:
>
>     Extensions used only by one module may be specified by placing a
> LANGUAGE pragma in the source file affected,

Oh, and just to chime in on the voting, I'm -1 (I don't think the
current syntax is ideal, but I'm not a fan of the proposal. Does this
come under the power of 1 by Wadler's Law? ;-)



-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
http://IvanMiljenovic.wordpress.com


More information about the Haskell-Cafe mailing list