haskell-tools icon indicating copy to clipboard operation
haskell-tools copied to clipboard

haskell-tools-builtin-refactorings-1.0.1.1 build failures

Open DanBurton opened this issue 7 years ago • 3 comments

As seen on the Stackage server:

[24 of 26] Compiling Language.Haskell.Tools.Refactor.Builtin.OrganizeImports ( L
anguage/Haskell/Tools/Refactor/Builtin/OrganizeImports.hs, dist/build/Language/$
askell/Tools/Refactor/Builtin/OrganizeImports.o )

Language/Haskell/Tools/Refactor/Builtin/OrganizeImports.hs:68:25: error:
    Variable not in scope:
      semanticsPrelOrphanInsts :: UnnamedModule -> [ClsInst]
   |
68 |   where prelInstances = semanticsPrelOrphanInsts mod
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^

Language/Haskell/Tools/Refactor/Builtin/OrganizeImports.hs:69:24: error:
    Variable not in scope:
      semanticsPrelFamInsts :: UnnamedModule -> [FamInst]
   |
69 |         prelFamInsts = semanticsPrelFamInsts mod
   |                        ^^^^^^^^^^^^^^^^^^^^^

Language/Haskell/Tools/Refactor/Builtin/OrganizeImports.hs:202:75: error:
    Variable not in scope:
      semanticsOrphanInsts
        :: Ann
             haskell-tools-ast-1.0.1.1:Language.Haskell.Tools.AST.Representation
.Modules.UImportDecl
             IdDom
             SrcTemplateStage
           -> [ClsInst]
    |
202 |           where needed = any (`notElem` otherClsInstances) (map is_dfun $
semanticsOrphanInsts imp)
    |
^^^^^^^^^^^^^^^^^^^^

Language/Haskell/Tools/Refactor/Builtin/OrganizeImports.hs:203:81: error:
    Variable not in scope:
      semanticsFamInsts
        :: Ann
             haskell-tools-ast-1.0.1.1:Language.Haskell.Tools.AST.Representation
.Modules.UImportDecl
             IdDom
             SrcTemplateStage
           -> [FamInst]
    |
203 |                            || any (`notElem` otherFamInstances) (map fi_ax
iom $ semanticsFamInsts imp)
    |
      ^^^^^^^^^^^^^^^^^

Language/Haskell/Tools/Refactor/Builtin/OrganizeImports.hs:204:60: error:
    Variable not in scope:
      semanticsOrphanInsts
        :: Ann
             haskell-tools-ast-1.0.1.1:Language.Haskell.Tools.AST.Representation
.Modules.UImportDecl
             IdDom
             SrcTemplateStage
           -> [ClsInst]
    |
204 |                 otherClsInstances = map is_dfun (concatMap semanticsOrphan
Insts kept ++ prelInsts)
    |                                                            ^^^^^^^^^^^^^^^
^^^^^


Language/Haskell/Tools/Refactor/Builtin/OrganizeImports.hs:205:61: error:
    Variable not in scope:
      semanticsFamInsts
        :: Ann
             haskell-tools-ast-1.0.1.1:Language.Haskell.Tools.AST.Representation.Modules.UImportDecl
             IdDom
             SrcTemplateStage
           -> [FamInst]
    |
205 |                 otherFamInstances = map fi_axiom (concatMap semanticsFamInsts kept ++ prelFamInsts)
    |                                                             ^^^^^^^^^^^^^^^^^

DanBurton avatar Mar 09 '18 22:03 DanBurton

I was able to reproduce locally like so:

stack unpack haskell-tools-builtin-refactorings-1.0.1.1 && cd haskell-tools-builtin-refactorings-1.0.1.1
edit stack.yaml # add the following stack.yaml
stack build
# stack.yaml
resolver: nightly-2018-03-07
extra-deps:
- classyplate-0.3.0.2
- minisat-solver-0.1

DanBurton avatar Mar 09 '18 22:03 DanBurton

Thank you, I will check it out on Monday!

nboldi avatar Mar 10 '18 01:03 nboldi

I think there is some mistake. The actual sources uploaded to hackage as haskell-tools-builtin-refactorings-1.0.1.1 does not match the compiler errors provided here.

nboldi avatar Mar 12 '18 01:03 nboldi