Guest User

Untitled

a guest
Mar 16th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.76 KB | None | 0 0
  1. nix-env -iA nixpkgs.haskellPackages.ghc-mod
  2. installing 'ghc-mod-5.8.0.0'
  3. these derivations will be built:
  4. /nix/store/2a2jj73557yn9wr4mfj2gjfdg4qsx96x-ghc-mod-5.8.0.0.drv
  5. building '/nix/store/2a2jj73557yn9wr4mfj2gjfdg4qsx96x-ghc-mod-5.8.0.0.drv'...
  6. setupCompilerEnvironmentPhase
  7. Build with /nix/store/70bs1dmdv2m2vxbd38hd5d50lf6d4apm-ghc-8.2.2.
  8. unpacking sources
  9. unpacking source archive /nix/store/vq4zl3c2hhn78vqqpqsdp1466wl1iniq-ghc-mod-5.8.0.0.tar.gz
  10. source root is ghc-mod-5.8.0.0
  11. setting SOURCE_DATE_EPOCH to timestamp 1495938286 of file ghc-mod-5.8.0.0/test/TestUtils.hs
  12. patching sources
  13. Replace Cabal file with edited version from http://hackage.haskell.org/package/ghc-mod-5.8.0.0/revision/1.cabal.
  14. compileBuildDriverPhase
  15. setupCompileFlags: -package-db=/tmp/nix-build-ghc-mod-5.8.0.0.drv-0/package.conf.d -j1 -threaded
  16. [1 of 1] Compiling Main ( Setup.hs, /tmp/nix-build-ghc-mod-5.8.0.0.drv-0/Main.o )
  17.  
  18. Setup.hs:85:60: error:
  19. • Couldn't match expected type ‘UnitId’
  20. with actual type ‘PathTemplate’
  21. • In the third argument of ‘substPathTemplate’, namely
  22. ‘(progPrefix lbi)’
  23. In the expression:
  24. substPathTemplate (packageId pd) lbi (progPrefix lbi)
  25. In an equation for ‘progprefix’:
  26. progprefix = substPathTemplate (packageId pd) lbi (progPrefix lbi)
  27. |
  28. 85 | progprefix = substPathTemplate (packageId pd) lbi (progPrefix lbi)
  29. | ^^^^^^^^^^^^^^
  30.  
  31. Setup.hs:86:60: error:
  32. • Couldn't match expected type ‘UnitId’
  33. with actual type ‘PathTemplate’
  34. • In the third argument of ‘substPathTemplate’, namely
  35. ‘(progSuffix lbi)’
  36. In the expression:
  37. substPathTemplate (packageId pd) lbi (progSuffix lbi)
  38. In an equation for ‘progsuffix’:
  39. progsuffix = substPathTemplate (packageId pd) lbi (progSuffix lbi)
  40. |
  41. 86 | progsuffix = substPathTemplate (packageId pd) lbi (progSuffix lbi)
  42. | ^^^^^^^^^^^^^^
  43.  
  44. Setup.hs:87:28: error:
  45. • Couldn't match expected type ‘[a]’
  46. with actual type ‘PathTemplate -> FilePath’
  47. • Probable cause: ‘progprefix’ is applied to too few arguments
  48. In the first argument of ‘(++)’, namely ‘progprefix’
  49. In the expression: progprefix ++ exeName exe ++ progsuffix
  50. In an equation for ‘fixedExeBaseName’:
  51. fixedExeBaseName = progprefix ++ exeName exe ++ progsuffix
  52. • Relevant bindings include
  53. fixedExeBaseName :: [a] (bound at Setup.hs:87:9)
  54. |
  55. 87 | fixedExeBaseName = progprefix ++ exeName exe ++ progsuffix
  56. | ^^^^^^^^^^
  57.  
  58. Setup.hs:87:42: error:
  59. • Couldn't match expected type ‘[a]’
  60. with actual type ‘Distribution.Types.UnqualComponentName.UnqualComponentName’
  61. • In the first argument of ‘(++)’, namely ‘exeName exe’
  62. In the second argument of ‘(++)’, namely
  63. ‘exeName exe ++ progsuffix’
  64. In the expression: progprefix ++ exeName exe ++ progsuffix
  65. • Relevant bindings include
  66. fixedExeBaseName :: [a] (bound at Setup.hs:87:9)
  67. |
  68. 87 | fixedExeBaseName = progprefix ++ exeName exe ++ progsuffix
  69. | ^^^^^^^^^^^
  70.  
  71. Setup.hs:87:57: error:
  72. • Couldn't match expected type ‘[a]’
  73. with actual type ‘PathTemplate -> FilePath’
  74. • Probable cause: ‘progsuffix’ is applied to too few arguments
  75. In the second argument of ‘(++)’, namely ‘progsuffix’
  76. In the second argument of ‘(++)’, namely
  77. ‘exeName exe ++ progsuffix’
  78. In the expression: progprefix ++ exeName exe ++ progsuffix
  79. • Relevant bindings include
  80. fixedExeBaseName :: [a] (bound at Setup.hs:87:9)
  81. |
  82. 87 | fixedExeBaseName = progprefix ++ exeName exe ++ progsuffix
  83. | ^^^^^^^^^^
  84.  
  85. Setup.hs:92:26: error:
  86. • Couldn't match expected type ‘Distribution.Types.UnqualComponentName.UnqualComponentName’
  87. with actual type ‘[Char]’
  88. • In the second argument of ‘(==)’, namely ‘"ghc-mod-real"’
  89. In the first argument of ‘when’, namely
  90. ‘(exeName exe == "ghc-mod-real")’
  91. In the expression: when (exeName exe == "ghc-mod-real")
  92. |
  93. 92 | when (exeName exe == "ghc-mod-real") $ do
  94. | ^^^^^^^^^^^^^^
  95. builder for '/nix/store/2a2jj73557yn9wr4mfj2gjfdg4qsx96x-ghc-mod-5.8.0.0.drv' failed with exit code 1
  96. error: build of '/nix/store/2a2jj73557yn9wr4mfj2gjfdg4qsx96x-ghc-mod-5.8.0.0.drv' failed
Advertisement
Add Comment
Please, Sign In to add comment