#5673: GHCi ignores {-# LANGUAGE OverloadedStrings #-}
---------------------+------------------------------------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 7.0.4
Resolution: | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: Other |
---------------------+------------------------------------------------------
Comment(by erikd):
Excellent post on the haskell-cafe mailing list by Bas van Dijk :
{{{
I think it's very dangerous if language extensions "leak" from modules
by default. For example if someone creates a library and needs to use
some unsafe language extensions like:
{-# LANGUAGE UndecidableInstances, OverlappingInstances,
IncoherentInstances #-}
module SomeLib where ...
You surely don't want to silently enable these in some unsuspecting
client:
module MyFirstHaskellModule where
import SomeLib
...
I can imagine having a pragma for explicitly exporting language
extensions:
{-# EXPORT_LANGUAGE OverloadedStrings #-}
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5673#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs