{"action":"opened","issue":{"url":"https://api.github.com/repos/jwiegley/hnix/issues/39","repository_url":"https://api.github.com/repos/jwiegley/hnix","labels_url":"https://api.github.com/repos/jwiegley/hnix/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/jwiegley/hnix/issues/39/comments","events_url":"https://api.github.com/repos/jwiegley/hnix/issues/39/events","html_url":"https://github.com/jwiegley/hnix/issues/39","id":167524883,"number":39,"title":"Error building with GHC 8.0.1","user":{"login":"DavidEGrayson","id":466764,"avatar_url":"https://avatars.githubusercontent.com/u/466764?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidEGrayson","html_url":"https://github.com/DavidEGrayson","followers_url":"https://api.github.com/users/DavidEGrayson/followers","following_url":"https://api.github.com/users/DavidEGrayson/following{/other_user}","gists_url":"https://api.github.com/users/DavidEGrayson/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidEGrayson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidEGrayson/subscriptions","organizations_url":"https://api.github.com/users/DavidEGrayson/orgs","repos_url":"https://api.github.com/users/DavidEGrayson/repos","events_url":"https://api.github.com/users/DavidEGrayson/events{/privacy}","received_events_url":"https://api.github.com/users/DavidEGrayson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-26T05:36:46Z","updated_at":"2016-07-26T05:36:46Z","closed_at":null,"body":"I get this error when building with GHC 8.0.1 on the Nix unstable channel:\r\n\r\n```\r\nBuilding hnix-0.3.2...\r\nPreprocessing library hnix-0.3.2...\r\n[ 1 of 11] Compiling Nix.Parser.Library ( Nix/Parser/Library.hs, dist/build/Nix/Parser/Library.o )\r\n[ 2 of 11] Compiling Nix.Atoms        ( Nix/Atoms.hs, dist/build/Nix/Atoms.o )\r\n[ 3 of 11] Compiling Nix.Expr.Types   ( Nix/Expr/Types.hs, dist/build/Nix/Expr/Types.o )\r\n\r\nNix/Expr/Types.hs:76:3: error:\r\n    ‘showsPrec1’ is not a (visible) method of class ‘Show1’\r\n```\r\n\r\nHere is a full shell session showing how I attempted to build this library and how I got that error message:\r\n\r\n```\r\n$ cat default.nix \r\nlet\r\n  pkgs = import <nixpkgs> { };\r\n  hnixSrc = pkgs.fetchFromGitHub{\r\n    owner = \"jwiegley\";\r\n    repo = \"hnix\";\r\n    rev = \"e2b80391bb731c80995a3a7f2dc0df6685c643c6\";\r\n    sha256 = \"0wxv5gmq7w3j8rzs000hskmbvdizcrhf44vpjw2xja519a4fz2r8\";\r\n  };\r\nin\r\n  pkgs.haskellPackages.callPackage (hnixSrc + \"/project.nix\") { }\r\n\r\n$ nix-channels --list\r\nbash: nix-channels: command not found\r\n\r\n$ nix-channel --list \r\nnixpkgs https://nixos.org/channels/nixpkgs-unstable\r\n\r\n$ echo $NIX_PATH\r\nnixpkgs=/home/david/.nix-defexpr/channels/nixpkgs\r\n\r\n$ nix-build\r\nthese derivations will be built:\r\n  /nix/store/ip4a8yxa5q7wla14l4y29vas749fpjg3-hnix-0.3.1.drv\r\nbuilding path(s) ‘/nix/store/waabfvwiaih4v6s5grg62b8xvc77743p-hnix-0.3.1’\r\nsetupCompilerEnvironmentPhase\r\nBuild with /nix/store/7niw289kg7f0yns33bk18c30qn76sy0i-ghc-8.0.1.\r\nunpacking sources\r\nunpacking source archive /nix/store/nsn6qp105ckxvx4dkgj9mil4k8wpyix9-14sf1f5cp9qw5a7i3gp3mbysc4gf2ipn-hnix-e2b80391bb731c80995a3a7f2dc0df6685c643c6-src\r\nsource root is 14sf1f5cp9qw5a7i3gp3mbysc4gf2ipn-hnix-e2b80391bb731c80995a3a7f2dc0df6685c643c6-src\r\npatching sources\r\ncompileBuildDriverPhase\r\nsetupCompileFlags: -package-db=/tmp/nix-build-hnix-0.3.1.drv-0/package.conf.d -j1 -threaded\r\n[1 of 1] Compiling Main             ( Setup.hs, /tmp/nix-build-hnix-0.3.1.drv-0/Main.o )\r\nLinking Setup ...\r\nconfiguring\r\nconfigureFlags: --verbose --prefix=/nix/store/waabfvwiaih4v6s5grg62b8xvc77743p-hnix-0.3.1 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --with-gcc=gcc --package-db=/tmp/nix-build-hnix-0.3.1.drv-0/package.conf.d --ghc-option=-optl=-Wl,-rpath=/nix/store/waabfvwiaih4v6s5grg62b8xvc77743p-hnix-0.3.1/lib/ghc-8.0.1/hnix-0.3.1 --enable-split-objs --disable-library-profiling --disable-profiling --enable-shared --enable-library-vanilla --enable-executable-dynamic --enable-tests\r\nConfiguring hnix-0.3.2...\r\nFlags chosen: parsec=False\r\nDependency ansi-wl-pprint -any: using ansi-wl-pprint-0.6.7.3\r\nDependency base >=4.6 && <5: using base-4.9.0.0\r\nDependency containers -any: using containers-0.5.7.1\r\nDependency data-fix -any: using data-fix-0.0.3\r\nDependency deepseq -any: using deepseq-1.4.2.0\r\nDependency hnix -any: using hnix-0.3.2\r\nDependency parsers >=0.10: using parsers-0.12.4\r\nDependency semigroups ==0.18.*: using semigroups-0.18.2\r\nDependency tasty -any: using tasty-0.11.0.3\r\nDependency tasty-hunit -any: using tasty-hunit-0.9.2\r\nDependency tasty-th -any: using tasty-th-0.1.4\r\nDependency text -any: using text-1.2.2.1\r\nDependency transformers -any: using transformers-0.5.2.0\r\nDependency trifecta -any: using trifecta-1.6\r\nDependency unordered-containers -any: using unordered-containers-0.2.7.1\r\nUsing Cabal-1.24.0.0 compiled by ghc-8.0\r\nUsing compiler: ghc-8.0.1\r\nUsing install prefix: /nix/store/waabfvwiaih4v6s5grg62b8xvc77743p-hnix-0.3.1\r\nBinaries installed in:\r\n/nix/store/waabfvwiaih4v6s5grg62b8xvc77743p-hnix-0.3.1/bin\r\nLibraries installed in:\r\n/nix/store/waabfvwiaih4v6s5grg62b8xvc77743p-hnix-0.3.1/lib/ghc-8.0.1/hnix-0.3.2\r\nPrivate binaries installed in:\r\n/nix/store/waabfvwiaih4v6s5grg62b8xvc77743p-hnix-0.3.1/libexec\r\nData files installed in:\r\n/nix/store/waabfvwiaih4v6s5grg62b8xvc77743p-hnix-0.3.1/share/x86_64-linux-ghc-8.0.1/hnix-0.3.2\r\nDocumentation installed in:\r\n/nix/store/waabfvwiaih4v6s5grg62b8xvc77743p-hnix-0.3.1/share/doc/x86_64-linux-ghc-8.0.1/hnix-0.3.2\r\nConfiguration files installed in:\r\n/nix/store/waabfvwiaih4v6s5grg62b8xvc77743p-hnix-0.3.1/etc\r\nNo alex found\r\nUsing ar found on system at:\r\n/nix/store/84x0vldsif3v7i7c6i2ckfzp4jyg9bq9-binutils-2.26/bin/ar\r\nNo c2hs found\r\nNo cpphs found\r\nUsing gcc version 5.4.0 given by user at:\r\n/nix/store/r8b456lwk0n1hinz92hwqsgb28c987b3-gcc-wrapper-5.4.0/bin/gcc\r\nUsing ghc version 8.0.1 found on system at:\r\n/nix/store/7niw289kg7f0yns33bk18c30qn76sy0i-ghc-8.0.1/bin/ghc\r\nUsing ghc-pkg version 8.0.1 found on system at:\r\n/nix/store/7niw289kg7f0yns33bk18c30qn76sy0i-ghc-8.0.1/bin/ghc-pkg\r\nNo ghcjs found\r\nNo ghcjs-pkg found\r\nNo greencard found\r\nUsing haddock version 2.17.2 found on system at:\r\n/nix/store/7niw289kg7f0yns33bk18c30qn76sy0i-ghc-8.0.1/bin/haddock\r\nNo happy found\r\nUsing haskell-suite found on system at: haskell-suite-dummy-location\r\nUsing haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location\r\nNo hmake found\r\nUsing hpc version 0.67 found on system at:\r\n/nix/store/7niw289kg7f0yns33bk18c30qn76sy0i-ghc-8.0.1/bin/hpc\r\nUsing hsc2hs version 0.68 found on system at:\r\n/nix/store/7niw289kg7f0yns33bk18c30qn76sy0i-ghc-8.0.1/bin/hsc2hs\r\nUsing hscolour version 1.24 found on system at:\r\n/nix/store/19mfvxh6fpa1w38n4vxy0chp4yqs38mg-hscolour-1.24.1/bin/HsColour\r\nNo jhc found\r\nUsing ld found on system at:\r\n/nix/store/r8b456lwk0n1hinz92hwqsgb28c987b3-gcc-wrapper-5.4.0/bin/ld\r\nNo lhc found\r\nNo lhc-pkg found\r\nNo pkg-config found\r\nUsing strip version 2.26 found on system at:\r\n/nix/store/84x0vldsif3v7i7c6i2ckfzp4jyg9bq9-binutils-2.26/bin/strip\r\nUsing tar found on system at:\r\n/nix/store/pgfnwxr4ky923p82qyjf8mf8mr7m3hvs-gnutar-1.29/bin/tar\r\nNo uhc found\r\nbuilding\r\nBuilding hnix-0.3.2...\r\nPreprocessing library hnix-0.3.2...\r\n[ 1 of 11] Compiling Nix.Parser.Library ( Nix/Parser/Library.hs, dist/build/Nix/Parser/Library.o )\r\n[ 2 of 11] Compiling Nix.Atoms        ( Nix/Atoms.hs, dist/build/Nix/Atoms.o )\r\n[ 3 of 11] Compiling Nix.Expr.Types   ( Nix/Expr/Types.hs, dist/build/Nix/Expr/Types.o )\r\n\r\nNix/Expr/Types.hs:76:3: error:\r\n    ‘showsPrec1’ is not a (visible) method of class ‘Show1’\r\nbuilder for ‘/nix/store/ip4a8yxa5q7wla14l4y29vas749fpjg3-hnix-0.3.1.drv’ failed with exit code 1\r\nerror: build of ‘/nix/store/ip4a8yxa5q7wla14l4y29vas749fpjg3-hnix-0.3.1.drv’ failed\r\n```\r\n\r\n"}}
{"actor":{"display_login":"DavidEGrayson"}}