[GHC] #9590: AMP breaks `haskell2010` package
GHC
ghc-devs at haskell.org
Thu Feb 12 10:08:48 UTC 2015
#9590: AMP breaks `haskell2010` package
-------------------------------------+-------------------------------------
Reporter: hvr | Owner: ekmett
Type: bug | Status: closed
Priority: high | Milestone: 7.10.1
Component: Core Libraries | Version: 7.9
Resolution: fixed | Keywords: AMP,
Operating System: Unknown/Multiple | report-impact
Type of failure: GHC rejects | Architecture:
valid program | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions: Phab:D510
-------------------------------------+-------------------------------------
Comment (by hvr):
Fyi, here's an attempt at updating/reviving the `haskell2010` package:
http://git.haskell.org/packages/haskell2010.git/commitdiff/refs/heads/wip/T9590
but it's unsatisfying at this moment; as expected, `do`-syntax still
refers to the `base`-version of the `Monad`-class, so you need to use
`-XRebindableSyntax` and be careful to bring into local scope whatever
functions are needed for syntax desugaring.
Maybe we can improve the alternative-Prelude support in GHC 7.12 to allow
a more seamless `-XRebindableSyntax` support which is less brittle, and
allows to better emulate a strict `haskell2010` mode, which only requires
to select the respective `-XHaskell....` flag for the language-part, and
the respective `Prelude`-providing library-package instead of `base`, and
would then drop you into a (reasonably) strictly standard-conforming
language+std-library environment...
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9590#comment:18>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list