Skip to content

Instantly share code, notes, and snippets.

@ElvishJerricco
Created July 16, 2018 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ElvishJerricco/c3c649de21c10942b7439d0cc63dd5ff to your computer and use it in GitHub Desktop.
Save ElvishJerricco/c3c649de21c10942b7439d0cc63dd5ff to your computer and use it in GitHub Desktop.
@nix { "action": "setPhase", "phase": "setupCompilerEnvironmentPhase" }
setupCompilerEnvironmentPhase
Build with /nix/store/jyryri80cww2yvn8sc5jdxcipv4psarz-ghcjs-8.4.0.1.
ignoring (possibly broken) abi-depends field for packages
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/sb29xmmv6f1dagzq5mfqn4325m8yn3js-th-abstraction-0.2.8.0.tar.gz
source root is th-abstraction-0.2.8.0
setting SOURCE_DATE_EPOCH to timestamp 1530288203 of file th-abstraction-0.2.8.0/th-abstraction.cabal
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
Replace Cabal file with edited version from http://hackage.haskell.org/package/th-abstraction-0.2.8.0/revision/1.cabal.
@nix { "action": "setPhase", "phase": "compileBuildDriverPhase" }
compileBuildDriverPhase
setupCompileFlags: -package-db=/tmp/nix-build-th-abstraction-0.2.8.0.drv-0/setup-package.conf.d -j4 -threaded
[1 of 1] Compiling Main ( Setup.hs, /tmp/nix-build-th-abstraction-0.2.8.0.drv-0/Main.o )
Linking Setup ...
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
configureFlags: --verbose --prefix=/nix/store/cgiffxwx6xzbpij9p4hf3kbppl7x277b-th-abstraction-0.2.8.0 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --docdir=/nix/store/hxkl665wdaia7pqkymrqfvh1xp5akhgq-th-abstraction-0.2.8.0-doc/share/doc/th-abstraction-0.2.8.0 --with-gcc=gcc --package-db=/tmp/nix-build-th-abstraction-0.2.8.0.drv-0/package.conf.d --ghc-option=-j4 --disable-split-objs --enable-library-profiling --profiling-detail=all-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --enable-library-vanilla --enable-library-for-ghci --ghc-option=-split-sections --ghcjs
Using Parsec parser
Configuring th-abstraction-0.2.8.0...
Dependency base >=4.3 && <5: using base-4.11.1.0
Dependency containers >=0.4 && <0.7: using containers-0.5.11.0
Dependency ghc-prim -any: using ghc-prim-0.5.2.0
Dependency template-haskell >=2.5 && <2.15: using template-haskell-2.13.0.0
Dependency th-abstraction -any: using th-abstraction-0.2.8.0
Source component graph:
component lib
component test:unit-tests dependency lib
Configured component graph:
component th-abstraction-0.2.8.0-FrpDGNtVLR56etPdNKNzTH
include base-4.11.1.0-5Kf3GqzZBK3J87Uu7pRIno
include ghc-prim-0.5.2.0-Bfo9y0qb0emG5VRfx5d4mv
include template-haskell-2.13.0.0-HH0DUmw1u2SL3CjEiyXTt
include containers-0.5.11.0-GhhPXbBZ8rf1WBQjAVqqMW
component th-abstraction-0.2.8.0-ILx6jYHWSSd5j9ppQ2tAFg-unit-tests
include th-abstraction-0.2.8.0-FrpDGNtVLR56etPdNKNzTH
include base-4.11.1.0-5Kf3GqzZBK3J87Uu7pRIno
include containers-0.5.11.0-GhhPXbBZ8rf1WBQjAVqqMW
include template-haskell-2.13.0.0-HH0DUmw1u2SL3CjEiyXTt
Linked component graph:
unit th-abstraction-0.2.8.0-FrpDGNtVLR56etPdNKNzTH
include base-4.11.1.0-5Kf3GqzZBK3J87Uu7pRIno
include ghc-prim-0.5.2.0-Bfo9y0qb0emG5VRfx5d4mv
include template-haskell-2.13.0.0-HH0DUmw1u2SL3CjEiyXTt
include containers-0.5.11.0-GhhPXbBZ8rf1WBQjAVqqMW
Language.Haskell.TH.Datatype=th-abstraction-0.2.8.0-FrpDGNtVLR56etPdNKNzTH:Language.Haskell.TH.Datatype
unit th-abstraction-0.2.8.0-ILx6jYHWSSd5j9ppQ2tAFg-unit-tests
include th-abstraction-0.2.8.0-FrpDGNtVLR56etPdNKNzTH
include base-4.11.1.0-5Kf3GqzZBK3J87Uu7pRIno
include containers-0.5.11.0-GhhPXbBZ8rf1WBQjAVqqMW
include template-haskell-2.13.0.0-HH0DUmw1u2SL3CjEiyXTt
Ready component graph:
definite th-abstraction-0.2.8.0-FrpDGNtVLR56etPdNKNzTH
depends base-4.11.1.0-5Kf3GqzZBK3J87Uu7pRIno
depends ghc-prim-0.5.2.0-Bfo9y0qb0emG5VRfx5d4mv
depends template-haskell-2.13.0.0-HH0DUmw1u2SL3CjEiyXTt
depends containers-0.5.11.0-GhhPXbBZ8rf1WBQjAVqqMW
definite th-abstraction-0.2.8.0-ILx6jYHWSSd5j9ppQ2tAFg-unit-tests
depends th-abstraction-0.2.8.0-FrpDGNtVLR56etPdNKNzTH
depends base-4.11.1.0-5Kf3GqzZBK3J87Uu7pRIno
depends containers-0.5.11.0-GhhPXbBZ8rf1WBQjAVqqMW
depends template-haskell-2.13.0.0-HH0DUmw1u2SL3CjEiyXTt
Using Cabal-2.2.0.1 compiled by ghc-8.4
Using compiler: ghcjs-8.4.0.1
Using install prefix:
/nix/store/cgiffxwx6xzbpij9p4hf3kbppl7x277b-th-abstraction-0.2.8.0
Executables installed in:
/nix/store/cgiffxwx6xzbpij9p4hf3kbppl7x277b-th-abstraction-0.2.8.0/bin
Libraries installed in:
/nix/store/cgiffxwx6xzbpij9p4hf3kbppl7x277b-th-abstraction-0.2.8.0/lib/ghcjs-8.4.0.1/th-abstraction-0.2.8.0
Dynamic Libraries installed in:
/nix/store/cgiffxwx6xzbpij9p4hf3kbppl7x277b-th-abstraction-0.2.8.0/lib/ghcjs-8.4.0.1/x86_64-linux-ghcjs-8.4.0.1-ghc8_4_2_20180420
Private executables installed in:
/nix/store/cgiffxwx6xzbpij9p4hf3kbppl7x277b-th-abstraction-0.2.8.0/libexec/x86_64-linux-ghcjs-8.4.0.1-ghc8_4_2_20180420/th-abstraction-0.2.8.0
Data files installed in:
/nix/store/cgiffxwx6xzbpij9p4hf3kbppl7x277b-th-abstraction-0.2.8.0/share/x86_64-linux-ghcjs-8.4.0.1-ghc8_4_2_20180420/th-abstraction-0.2.8.0
Documentation installed in:
/nix/store/hxkl665wdaia7pqkymrqfvh1xp5akhgq-th-abstraction-0.2.8.0-doc/share/doc/th-abstraction-0.2.8.0
Configuration files installed in:
/nix/store/cgiffxwx6xzbpij9p4hf3kbppl7x277b-th-abstraction-0.2.8.0/etc
No alex found
Using ar found on system at:
/nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 7.3.0 given by user at:
/nix/store/yz6kinf4ia19r1c14yirl6x4ciwgzk67-gcc-wrapper-7.3.0/bin/gcc
Using ghc version 8.4.3 found on system at:
/nix/store/v2qr71m53qpcgjkbc84iggr72f0zivhw-ghc-8.4.3/bin/ghc
Using ghc-pkg version 8.4.3 found on system at:
/nix/store/v2qr71m53qpcgjkbc84iggr72f0zivhw-ghc-8.4.3/bin/ghc-pkg
Using ghcjs version 8.4.0.1 found on system at:
/nix/store/jyryri80cww2yvn8sc5jdxcipv4psarz-ghcjs-8.4.0.1/bin/ghcjs
Using ghcjs-pkg version 8.4.2.20180420 found on system at:
/nix/store/jyryri80cww2yvn8sc5jdxcipv4psarz-ghcjs-8.4.0.1/bin/ghcjs-pkg
No greencard found
Using haddock version 2.20.0 found on system at:
/nix/store/jyryri80cww2yvn8sc5jdxcipv4psarz-ghcjs-8.4.0.1/bin/haddock-ghcjs
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at:
/nix/store/v2qr71m53qpcgjkbc84iggr72f0zivhw-ghc-8.4.3/bin/hpc
Using hsc2hs version 0.68.3 found on system at:
/nix/store/jyryri80cww2yvn8sc5jdxcipv4psarz-ghcjs-8.4.0.1/bin/hsc2hs-ghcjs
Using hscolour version 1.24 found on system at:
/nix/store/1rfzkw7wcgnkz82n2hd1cyg0lv6z48is-hscolour-1.24.4/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/yz6kinf4ia19r1c14yirl6x4ciwgzk67-gcc-wrapper-7.3.0/bin/ld
No lhc found
No lhc-pkg found
No pkg-config found
Using runghc version 8.4.3 found on system at:
/nix/store/v2qr71m53qpcgjkbc84iggr72f0zivhw-ghc-8.4.3/bin/runghc
Using strip version 2.30 found on system at:
/nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/strip
Using tar found on system at:
/nix/store/wpdkxjpwj0yihaixbmamdlzrpw5vn944-gnutar-1.30/bin/tar
No uhc found
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Preprocessing library for th-abstraction-0.2.8.0..
Building library for th-abstraction-0.2.8.0..
[1 of 2] Compiling Language.Haskell.TH.Datatype.Internal ( src/Language/Haskell/TH/Datatype/Internal.hs, dist/build/Language/Haskell/TH/Datatype/Internal.js_o )
[2 of 2] Compiling Language.Haskell.TH.Datatype ( src/Language/Haskell/TH/Datatype.hs, dist/build/Language/Haskell/TH/Datatype.js_o )
[1 of 2] Compiling Language.Haskell.TH.Datatype.Internal ( src/Language/Haskell/TH/Datatype/Internal.hs, dist/build/Language/Haskell/TH/Datatype/Internal.js_p_o )
[2 of 2] Compiling Language.Haskell.TH.Datatype ( src/Language/Haskell/TH/Datatype.hs, dist/build/Language/Haskell/TH/Datatype.js_p_o )
Preprocessing test suite 'unit-tests' for th-abstraction-0.2.8.0..
Building test suite 'unit-tests' for th-abstraction-0.2.8.0..
[1 of 3] Compiling Harness ( test/Harness.hs, dist/build/unit-tests/unit-tests-tmp/Harness.js_o )
[2 of 3] Compiling Types ( test/Types.hs, dist/build/unit-tests/unit-tests-tmp/Types.js_o )
[3 of 3] Compiling Main ( test/Main.hs, dist/build/unit-tests/unit-tests-tmp/Main.js_o )
Linking Template Haskell ()
Linking Template Haskell (Harness,ThRunner1,Types)
Linking Template Haskell (Harness,ThRunner2,Types)
Linking Template Haskell (Harness,ThRunner3,Types)
Linking Template Haskell (Harness,ThRunner4,Types)
Linking Template Haskell (Harness,ThRunner5,Types)
Linking Template Haskell (Harness,ThRunner6,Types)
Linking Template Haskell (Harness,ThRunner7,Types)
Linking Template Haskell (Harness,ThRunner8,Types)
Linking Template Haskell (Harness,ThRunner9,Types)
Linking Template Haskell (Harness,ThRunner10,Types)
Linking Template Haskell (Harness,ThRunner11,Types)
test/Main.hs:332:5: error:
• The exact Name ‘MkT43Plain_afnz’ is not in scope
Probable cause: you used a unique Template Haskell name (NameU),
perhaps via newName, but did not bind it
If that's it, then -ddump-splices might be useful
• In the untyped splice:
$(do [decPlain] <- [d| data T43Plain
where MkT43Plain :: T43Plain |]
infoPlain <- normalizeDec decPlain
validateDI
infoPlain
DatatypeInfo
{datatypeName = mkName "T43Plain", datatypeContext = [],
datatypeVars = [], datatypeVariant = Datatype,
datatypeCons = [ConstructorInfo
{constructorName = mkName "MkT43Plain", constructorVars = [],
constructorContext = [], constructorFields = [],
constructorStrictness = [],
constructorVariant = NormalConstructor}]}
[decFam] <- [d| data instance T43Fam where MkT43Fam :: T43Fam |]
....)
|
332 | $(do [decPlain] <- [d| data T43Plain where MkT43Plain :: T43Plain |]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
test/Main.hs:332:5: error:
• The exact Name ‘MkT43Plain_afnz’ is not in scope
Probable cause: you used a unique Template Haskell name (NameU),
perhaps via newName, but did not bind it
If that's it, then -ddump-splices might be useful
• In the untyped splice:
$(do [decPlain] <- [d| data T43Plain
where MkT43Plain :: T43Plain |]
infoPlain <- normalizeDec decPlain
validateDI
infoPlain
DatatypeInfo
{datatypeName = mkName "T43Plain", datatypeContext = [],
datatypeVars = [], datatypeVariant = Datatype,
datatypeCons = [ConstructorInfo
{constructorName = mkName "MkT43Plain", constructorVars = [],
constructorContext = [], constructorFields = [],
constructorStrictness = [],
constructorVariant = NormalConstructor}]}
[decFam] <- [d| data instance T43Fam where MkT43Fam :: T43Fam |]
....)
|
332 | $(do [decPlain] <- [d| data T43Plain where MkT43Plain :: T43Plain |]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
test/Main.hs:332:5: error:
• The exact Name ‘MkT43Fam_afnA’ is not in scope
Probable cause: you used a unique Template Haskell name (NameU),
perhaps via newName, but did not bind it
If that's it, then -ddump-splices might be useful
• In the untyped splice:
$(do [decPlain] <- [d| data T43Plain
where MkT43Plain :: T43Plain |]
infoPlain <- normalizeDec decPlain
validateDI
infoPlain
DatatypeInfo
{datatypeName = mkName "T43Plain", datatypeContext = [],
datatypeVars = [], datatypeVariant = Datatype,
datatypeCons = [ConstructorInfo
{constructorName = mkName "MkT43Plain", constructorVars = [],
constructorContext = [], constructorFields = [],
constructorStrictness = [],
constructorVariant = NormalConstructor}]}
[decFam] <- [d| data instance T43Fam where MkT43Fam :: T43Fam |]
....)
|
332 | $(do [decPlain] <- [d| data T43Plain where MkT43Plain :: T43Plain |]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
test/Main.hs:332:5: error:
• The exact Name ‘MkT43Fam_afnA’ is not in scope
Probable cause: you used a unique Template Haskell name (NameU),
perhaps via newName, but did not bind it
If that's it, then -ddump-splices might be useful
• In the untyped splice:
$(do [decPlain] <- [d| data T43Plain
where MkT43Plain :: T43Plain |]
infoPlain <- normalizeDec decPlain
validateDI
infoPlain
DatatypeInfo
{datatypeName = mkName "T43Plain", datatypeContext = [],
datatypeVars = [], datatypeVariant = Datatype,
datatypeCons = [ConstructorInfo
{constructorName = mkName "MkT43Plain", constructorVars = [],
constructorContext = [], constructorFields = [],
constructorStrictness = [],
constructorVariant = NormalConstructor}]}
[decFam] <- [d| data instance T43Fam where MkT43Fam :: T43Fam |]
....)
|
332 | $(do [decPlain] <- [d| data T43Plain where MkT43Plain :: T43Plain |]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment