Advertisement
Guest User

apply-refact ghc-9.10.1 build errors

a guest
May 13th, 2024
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.78 KB | None | 0 0
  1. Wrote tarball sdist to
  2. /Users/shayne/tmp/apply-refact/dist-newstyle/sdist/apply-refact-0.14.0.0.tar.gz
  3. Wrote tarball sdist to
  4. /Users/shayne/tmp/apply-refact/dist-newstyle/sdist/ghc-exactprint-1.9.0.0.tar.gz
  5. Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.10.2.1 supports
  6. 'ghc' version < 9.10): /Users/shayne/ghc-9.10.1/bin/ghc is version
  7. 9.10.0.20240426
  8. Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.10.2.1 supports
  9. 'ghc' version < 9.10): /Users/shayne/ghc-9.10.1/bin/ghc is version
  10. 9.10.0.20240426
  11. Resolving dependencies...
  12. Build profile: -w ghc-9.10.0.20240426 -O1
  13. In order, the following will be built (use -v for more details):
  14. - apply-refact-0.14.0.0 (exe:refactor) (requires build)
  15. Starting apply-refact-0.14.0.0 (exe:refactor)
  16. Building apply-refact-0.14.0.0 (exe:refactor)
  17.  
  18. Failed to build exe:refactor from apply-refact-0.14.0.0.
  19. Build log (
  20. /Users/shayne/.cabal/logs/ghc-9.10.0.20240426/pply-rfct-0.14.0.0-46f3058b.log
  21. ):
  22. Configuring executable 'refactor' for apply-refact-0.14.0.0..
  23. Preprocessing executable 'refactor' for apply-refact-0.14.0.0..
  24. Building executable 'refactor' for apply-refact-0.14.0.0..
  25. [1 of 9] Compiling Paths_apply_refact ( dist/build/refactor/autogen/Paths_apply_refact.hs, dist/build/refactor/refactor-tmp/Paths_apply_refact.o )
  26. [2 of 9] Compiling Refact.Compat ( src/Refact/Compat.hs, dist/build/refactor/refactor-tmp/Refact/Compat.o )
  27. [3 of 9] Compiling Refact.Utils ( src/Refact/Utils.hs, dist/build/refactor/refactor-tmp/Refact/Utils.o )
  28. src/Refact/Utils.hs:134:50: error: [GHC-76037]
  29. Not in scope: data constructor ‘GHC.SrcSpanAnn’
  30. NB: the module ‘GHC’ does not export ‘SrcSpanAnn’.
  31. |
  32. 134 | Just (GHC.L _ (GHC.HsVar _ (GHC.L (GHC.SrcSpanAnn (GHC.EpAnn _ ann _) _) _)))
  33. | ^^^^^^^^^^^^^^
  34.  
  35. src/Refact/Utils.hs:138:22: error: [GHC-76037]
  36. Not in scope: data constructor ‘GHC.SrcSpanAnn’
  37. NB: the module ‘GHC’ does not export ‘SrcSpanAnn’.
  38. |
  39. 138 | (GHC.SrcSpanAnn (GHC.EpAnn a _ cs) ll) -> GHC.SrcSpanAnn (GHC.EpAnn a ann cs) ll
  40. | ^^^^^^^^^^^^^^
  41.  
  42. src/Refact/Utils.hs:138:63: error: [GHC-76037]
  43. Not in scope: data constructor ‘GHC.SrcSpanAnn’
  44. NB: the module ‘GHC’ does not export ‘SrcSpanAnn’.
  45. Suggested fix:
  46. Perhaps use one of these:
  47. variable ‘GHC.srcSpanEnd’ (imported from GHC),
  48. variable ‘GHC.srcSpan2e’ (imported from GHC),
  49. variable ‘GHC.noSrcSpanA’ (imported from GHC)
  50. |
  51. 138 | (GHC.SrcSpanAnn (GHC.EpAnn a _ cs) ll) -> GHC.SrcSpanAnn (GHC.EpAnn a ann cs) ll
  52. | ^^^^^^^^^^^^^^
  53.  
  54. src/Refact/Utils.hs:139:22: error: [GHC-76037]
  55. Not in scope: data constructor ‘GHC.SrcSpanAnn’
  56. NB: the module ‘GHC’ does not export ‘SrcSpanAnn’.
  57. |
  58. 139 | (GHC.SrcSpanAnn GHC.EpAnnNotUsed ll) ->
  59. | ^^^^^^^^^^^^^^
  60.  
  61. src/Refact/Utils.hs:139:37: error: [GHC-76037]
  62. Not in scope: data constructor ‘GHC.EpAnnNotUsed’
  63. NB: the module ‘GHC’ does not export ‘EpAnnNotUsed’.
  64. |
  65. 139 | (GHC.SrcSpanAnn GHC.EpAnnNotUsed ll) ->
  66. | ^^^^^^^^^^^^^^^^
  67.  
  68. src/Refact/Utils.hs:140:23: error: [GHC-76037]
  69. Not in scope: data constructor ‘GHC.SrcSpanAnn’
  70. NB: the module ‘GHC’ does not export ‘SrcSpanAnn’.
  71. Suggested fix:
  72. Perhaps use one of these:
  73. variable ‘GHC.srcSpanEnd’ (imported from GHC),
  74. variable ‘GHC.srcSpan2e’ (imported from GHC),
  75. variable ‘GHC.noSrcSpanA’ (imported from GHC)
  76. |
  77. 140 | GHC.SrcSpanAnn (GHC.EpAnn (GHC.spanAsAnchor ll) ann GHC.emptyComments) ll
  78. | ^^^^^^^^^^^^^^
  79.  
  80. src/Refact/Utils.hs:142:19: error: [GHC-76037]
  81. Not in scope: data constructor ‘GHC.SrcSpanAnn’
  82. NB: the module ‘GHC’ does not export ‘SrcSpanAnn’.
  83. |
  84. 142 | | GHC.SrcSpanAnn (GHC.EpAnn a ann' cs) ll <- ln,
  85. | ^^^^^^^^^^^^^^
  86.  
  87. src/Refact/Utils.hs:144:19: error: [GHC-76037]
  88. Not in scope: data constructor ‘GHC.SrcSpanAnn’
  89. NB: the module ‘GHC’ does not export ‘SrcSpanAnn’.
  90. Suggested fix:
  91. Perhaps use one of these:
  92. variable ‘GHC.srcSpanEnd’ (imported from GHC),
  93. variable ‘GHC.srcSpan2e’ (imported from GHC),
  94. variable ‘GHC.noSrcSpanA’ (imported from GHC)
  95. |
  96. 144 | GHC.SrcSpanAnn (GHC.EpAnn a ann cs) ll
  97. | ^^^^^^^^^^^^^^
  98.  
  99. Error: cabal: Failed to build exe:refactor from apply-refact-0.14.0.0. See the
  100. build log above for details.
  101.  
  102.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement