Skip to content

Instantly share code, notes, and snippets.

@osa1
Created April 16, 2015 14:54
Show Gist options
  • Save osa1/4fe6a09a473dcb72798e to your computer and use it in GitHub Desktop.
Save osa1/4fe6a09a473dcb72798e to your computer and use it in GitHub Desktop.
GHC bug
-- Initial ghc-bug.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: ghc-bug
version: 0.1.0.0
-- synopsis:
-- description:
-- license:
license-file: LICENSE
author: Ömer Sinan Ağacan
maintainer: [email protected]
-- copyright:
-- category:
build-type: Simple
-- extra-source-files:
cabal-version: >=1.10
executable ghc-bug
main-is: Main.hs
-- other-modules:
other-extensions: QuasiQuotes
build-depends: base >=4.8 && <4.9, haskell-src-exts-qq
hs-source-dirs: src
default-language: Haskell2010
{-# LANGUAGE QuasiQuotes #-}
import Language.Haskell.Exts.QQ
main = print [hs| \x -> case x of { 0 -> True; _ -> odd (x - 1) } |]
➜ ghc_bug cabal install
Resolving dependencies...
Notice: installing into a sandbox located at
/home/omer/haskell/ghc_bug/.cabal-sandbox
Configuring mtl-2.2.1...
Configuring nats-1...
Configuring old-locale-1.0.0.7...
Configuring safe-0.3.8...
Configuring syb-0.4.4...
Configuring text-1.2.0.4...
Configuring th-lift-0.7.2...
Building old-locale-1.0.0.7...
Building mtl-2.2.1...
Building nats-1...
Building safe-0.3.8...
Building text-1.2.0.4...
Building syb-0.4.4...
Building th-lift-0.7.2...
Installed nats-1
Installed old-locale-1.0.0.7
Configuring old-time-1.1.0.3...
Installed th-lift-0.7.2
Installed safe-0.3.8
Installed mtl-2.2.1
Building old-time-1.1.0.3...
Installed syb-0.4.4
Configuring th-expand-syns-0.3.0.6...
Building th-expand-syns-0.3.0.6...
Installed th-expand-syns-0.3.0.6
Configuring th-reify-many-0.1.3...
Building th-reify-many-0.1.3...
Installed th-reify-many-0.1.3
Configuring th-orphans-0.11.1...
Installed old-time-1.1.0.3
Building th-orphans-0.11.1...
Installed th-orphans-0.11.1
Installed text-1.2.0.4
Configuring polyparse-1.11...
Building polyparse-1.11...
Installed polyparse-1.11
Configuring cpphs-1.19...
Building cpphs-1.19...
Installed cpphs-1.19
Configuring haskell-src-exts-1.16.0.1...
Building haskell-src-exts-1.16.0.1...
Installed haskell-src-exts-1.16.0.1
Configuring haskell-src-meta-0.6.0.9...
Building haskell-src-meta-0.6.0.9...
Installed haskell-src-meta-0.6.0.9
Configuring haskell-src-exts-qq-0.6.1...
Building haskell-src-exts-qq-0.6.1...
Installed haskell-src-exts-qq-0.6.1
Configuring ghc-bug-0.1.0.0...
Building ghc-bug-0.1.0.0...
Failed to install ghc-bug-0.1.0.0
Build log ( /home/omer/haskell/ghc_bug/.cabal-sandbox/logs/ghc-bug-0.1.0.0.log ):
Configuring ghc-bug-0.1.0.0...
Building ghc-bug-0.1.0.0...
Preprocessing executable 'ghc-bug' for ghc-bug-0.1.0.0...
[1 of 1] Compiling Main ( src/Main.hs, dist/dist-sandbox-9fceaa6f/build/ghc-bug/ghc-bug-tmp/Main.o )
src/Main.hs:5:18:ghc: panic! (the 'impossible' happened)
(GHC version 7.10.1 for x86_64-unknown-linux):
qual_pkg haskell-src-exts-1.16.0.1
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
cabal: Error: some packages failed to install:
ghc-bug-0.1.0.0 failed during the building phase. The exception was:
ExitFailure 1
@osa1
Copy link
Author

osa1 commented Jun 26, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment