[GHC] #10279: panic on haskell-src-exts
GHC
ghc-devs at haskell.org
Fri Apr 24 15:47:05 UTC 2015
#10279: panic on haskell-src-exts
-------------------------------------+-------------------------------------
Reporter: throwaway123 | Owner: ezyang
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64
Type of failure: Compile-time | (amd64)
crash | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by rwbarton):
Replying to [comment:10 simonpj]:
> 1. Add a new function
> {{{
> reifyPackage :: String -- Package name
> -> String -- Version
> -> Q [Package]
> }}}
> which, given a package name/version returns all the installed packages
with that name and version.
I'm a little worried that this will encourage the people who previously
wrote things like
{{{
pkg = "haskell-src-exts-" ++ VERSION_haskell_src_exts
}}}
to instead call
{{{
[pkg] <- reifyPackage "haskell-src-exts" VERSION_haskell_src_exts
}}}
just hoping that the result is a single package version.
I'm not up to speed on the context here, but would it be possible to also
provide
{{{
thisPackage :: Q Package -- or maybe just :: Package
}}}
that refers to the package currently being built?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10279#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list