#7549: Deriving Bug? -----------------------------+---------------------------------------------- Reporter: davorak | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.4.2 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- ghci -XDeriveDataTypeable > import Data.Typeable > data S = S deriving (typeable) ghc: panic! (the 'impossible' happened) (GHC version 7.4.2 for x86_64-unknown-linux): nameModule typeable{tv av8}
Please report ... data S = S deriving typeable causes a parse error and The following work just fine: data S = S deriving Typeable data S = S deriving (Typeable) data S = S deriving (show) causes a similar error the only change being: nameModule show{tv av8} The same problem exists outside of ghci when trying to compile with GHC. The ascii tree for the dependancies of the ghc install produced with nix-store -q --tree $(which ghc) /nix/store/gzb4pca6nnb16lw2mbmr68kx2vwx8q56-ghc-7.4.2-wrapper[[BR]] +---/nix/store/043zrsanirjh8nbc5vqpjn93hhrf107f-bash-4.2-p24[[BR]] | +---/nix/store/cj7a81wsm1ijwwpkks3725661h3263p5-glibc-2.13[[BR]] | | +---/nix/store/jfcs9xnfbmiwqs224sb0qqsybbfl3sab-linux- headers-2.6.35.14[[BR]] | | | +---/nix/store/jfcs9xnfbmiwqs224sb0qqsybbfl3sab-linux- headers-2.6.35.14 [...][[BR]] | | +---/nix/store/cj7a81wsm1ijwwpkks3725661h3263p5-glibc-2.13 [...][[BR]] | +---/nix/store/043zrsanirjh8nbc5vqpjn93hhrf107f-bash-4.2-p24 [...][[BR]] +---/nix/store/858ww5lrjxca5asa79vwq5rm6m1h3q6k-ghc-7.4.2[[BR]] | +---/nix/store/cj7a81wsm1ijwwpkks3725661h3263p5-glibc-2.13 [...][[BR]] | +---/nix/store/043zrsanirjh8nbc5vqpjn93hhrf107f-bash-4.2-p24 [...][[BR]] | +---/nix/store/1iigiim5855m8j7pmwf5xrnpf705s4dh-binutils-2.21.1a[[BR]] | | +---/nix/store/cj7a81wsm1ijwwpkks3725661h3263p5-glibc-2.13 [...][[BR]] | | +---/nix/store/i3mqzy76lf51v5zqxjxyvf11j25iwycd-zlib-1.2.7[[BR]] | | | +---/nix/store/cj7a81wsm1ijwwpkks3725661h3263p5-glibc-2.13 [...][[BR]] | | | +---/nix/store/i3mqzy76lf51v5zqxjxyvf11j25iwycd-zlib-1.2.7 [...][[BR]] | | +---/nix/store/1iigiim5855m8j7pmwf5xrnpf705s4dh-binutils-2.21.1a [...][[BR]] | +---/nix/store/a9jvlnrva7vr1szbg6shpw6nr5xz898p-gmp-5.0.5[[BR]] | | +---/nix/store/cj7a81wsm1ijwwpkks3725661h3263p5-glibc-2.13 [...][[BR]] | | +---/nix/store/4gv9gby4bn1y0rlw3k0d5lyqy0yfkrc6-gcc-4.6.3[[BR]] | | | +---/nix/store/jfcs9xnfbmiwqs224sb0qqsybbfl3sab-linux- headers-2.6.35.14 [...][[BR]] | | | +---/nix/store/cj7a81wsm1ijwwpkks3725661h3263p5-glibc-2.13 [...][[BR]] | | | +---/nix/store/i3mqzy76lf51v5zqxjxyvf11j25iwycd-zlib-1.2.7 [...][[BR]] | | | +---/nix/store/4gv9gby4bn1y0rlw3k0d5lyqy0yfkrc6-gcc-4.6.3 [...][[BR]] | | +---/nix/store/a9jvlnrva7vr1szbg6shpw6nr5xz898p-gmp-5.0.5 [...][[BR]] | +---/nix/store/ahg5mlj2mlp7yfl3x875pq95ar763vgj-ncurses-5.9[[BR]] | | +---/nix/store/cj7a81wsm1ijwwpkks3725661h3263p5-glibc-2.13 [...][[BR]] | | +---/nix/store/043zrsanirjh8nbc5vqpjn93hhrf107f-bash-4.2-p24 [...][[BR]] | | +---/nix/store/ahg5mlj2mlp7yfl3x875pq95ar763vgj-ncurses-5.9 [...][[BR]] | +---/nix/store/v4m3gahx1iz53v51rdinh0lcmipn1p4j-perl-5.14.2[[BR]] | | +---/nix/store/cj7a81wsm1ijwwpkks3725661h3263p5-glibc-2.13 [...][[BR]] | | +---/nix/store/4gv9gby4bn1y0rlw3k0d5lyqy0yfkrc6-gcc-4.6.3 [...][[BR]] | | +---/nix/store/vpp6h8l3mzjdn5paziz31vk52pg73635-coreutils-8.15[[BR]] | | | +---/nix/store/cj7a81wsm1ijwwpkks3725661h3263p5-glibc-2.13 [...][[BR]] | | | +---/nix/store/qh3l8f8369kvbhnkbwwnpaxayvnvi55v- acl-2.2.51[[BR]] | | | | +---/nix/store/cj7a81wsm1ijwwpkks3725661h3263p5-glibc-2.13 [...][[BR]] | | | | +---/nix/store/jaabnv7dgxzvyhg0nxzk7xqs2qxp5rcy- attr-2.4.46[[BR]] | | | | | +---/nix/store/cj7a81wsm1ijwwpkks3725661h3263p5-glibc-2.13 [...][[BR]] | | | | | +---/nix/store/jaabnv7dgxzvyhg0nxzk7xqs2qxp5rcy- attr-2.4.46 [...][[BR]] | | | | +---/nix/store/qh3l8f8369kvbhnkbwwnpaxayvnvi55v-acl-2.2.51 [...][[BR]] | | | +---/nix/store/vpp6h8l3mzjdn5paziz31vk52pg73635-coreutils-8.15 [...][[BR]] | | +---/nix/store/v4m3gahx1iz53v51rdinh0lcmipn1p4j-perl-5.14.2 [...][[BR]] | +---/nix/store/xl3kqxs68gzs4h309wjyd32im9n6cnyr-gcc- wrapper-4.6.3[[BR]] | | +---/nix/store/cj7a81wsm1ijwwpkks3725661h3263p5-glibc-2.13 [...][[BR]] | | +---/nix/store/043zrsanirjh8nbc5vqpjn93hhrf107f-bash-4.2-p24 [...][[BR]] | | +---/nix/store/1iigiim5855m8j7pmwf5xrnpf705s4dh-binutils-2.21.1a [...][[BR]] | | +---/nix/store/4gv9gby4bn1y0rlw3k0d5lyqy0yfkrc6-gcc-4.6.3 [...][[BR]] | | +---/nix/store/vpp6h8l3mzjdn5paziz31vk52pg73635-coreutils-8.15 [...][[BR]] | | +---/nix/store/xl3kqxs68gzs4h309wjyd32im9n6cnyr-gcc-wrapper-4.6.3 [...][[BR]] | +---/nix/store/858ww5lrjxca5asa79vwq5rm6m1h3q6k-ghc-7.4.2 [...][[BR]] +---/nix/store/gzb4pca6nnb16lw2mbmr68kx2vwx8q56-ghc-7.4.2-wrapper [...][[BR]] OS: nixos 1.1 GHC: 7.4.2 -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7549> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs