Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build on MacOS using Cabal #985

Closed
2 tasks done
mouse07410 opened this issue Nov 26, 2024 · 6 comments
Closed
2 tasks done

Cannot build on MacOS using Cabal #985

mouse07410 opened this issue Nov 26, 2024 · 6 comments

Comments

@mouse07410
Copy link

Problem

Cannot install on MacOS (14.7.1 and 15.1)

  • I checked the issue tracker for existing issues about this problem.

  • I'm using the latest version of hindent (available on Hackage).

  • Cabal 3.12.1.0

  • GHC-9.4.8 (and 9.8.2, 9.10.1)

Error:

[ 19 of 113] Compiling HIndent.CabalFile ( src/HIndent/CabalFile.hs, dist/build/HIndent/CabalFile.o, dist/build/HIndent/CabalFile.dyn_o )

src/HIndent/CabalFile.hs:69:52: error:
    • Couldn't match type: Distribution.Utils.Path.SymbolicPathX
                             'Distribution.Utils.Path.OnlyRelative
                             Distribution.Utils.Path.Source
                             'Distribution.Utils.Path.File
                     with: [Char]
      Expected: FilePath
        Actual: Distribution.Utils.Path.RelativePath
                  Distribution.Utils.Path.Source 'Distribution.Utils.Path.File
    • In the expression: modulePath exe
      In the third argument of ‘mkStanza’, namely ‘[modulePath exe]’
      In the expression: mkStanza (buildInfo exe) [] [modulePath exe]
   |
69 |       exeStanza exe = mkStanza (buildInfo exe) [] [modulePath exe]
   |                                                    ^^^^^^^^^^^^^^

src/HIndent/CabalFile.hs:78:41: error:
    • Couldn't match type: Distribution.Utils.Path.SymbolicPathX
                             'Distribution.Utils.Path.OnlyRelative
                             Distribution.Utils.Path.Source
                             'Distribution.Utils.Path.File
                     with: [Char]
      Expected: FilePath
        Actual: Distribution.Utils.Path.RelativePath
                  Distribution.Utils.Path.Source 'Distribution.Utils.Path.File
    • In the expression: path
      In the expression: [path]
      In a case alternative: TestSuiteExeV10 _ path -> [path]
   |
78 |              TestSuiteExeV10 _ path -> [path]
   |                                         ^^^^

src/HIndent/CabalFile.hs:84:42: error:
    • Couldn't match type: Distribution.Utils.Path.SymbolicPathX
                             'Distribution.Utils.Path.OnlyRelative
                             Distribution.Utils.Path.Source
                             'Distribution.Utils.Path.File
                     with: [Char]
      Expected: FilePath
        Actual: Distribution.Utils.Path.RelativePath
                  Distribution.Utils.Path.Source 'Distribution.Utils.Path.File
    • In the expression: path
      In the expression: [path]
      In a case alternative: BenchmarkExeV10 _ path -> [path]
   |
84 |               BenchmarkExeV10 _ path -> [path]
   |                                          ^^^^

Complete build log:

$ cabal install hindent -w ghc-9.4.8 --overwrite-policy=always
Resolving dependencies...
Build profile: -w ghc-9.4.8 -O2
In order, the following will be built (use -v for more details):
 - hindent-6.2.0 (lib) (requires build)
 - hindent-6.2.0 (lib:hindent-internal) (requires build)
 - hindent-6.2.0 (exe:hindent) (requires build)
Starting     hindent-6.2.0 (lib)
Starting     hindent-6.2.0 (lib:hindent-internal)
Building     hindent-6.2.0 (lib)
Building     hindent-6.2.0 (lib:hindent-internal)
Installing   hindent-6.2.0 (lib:hindent-internal)
Completed    hindent-6.2.0 (lib:hindent-internal)

Failed to build hindent-6.2.0.
Build log ( /Users/ur20980/.cabal/logs/ghc-9.4.8/hndnt-6.2.0-0f2f7393.log ):
Configuring library for hindent-6.2.0...
Preprocessing library for hindent-6.2.0...
Building library for hindent-6.2.0...
[  1 of 113] Compiling HIndent.Applicative ( src/HIndent/Applicative.hs, dist/build/HIndent/Applicative.o, dist/build/HIndent/Applicative.dyn_o )
[  2 of 113] Compiling HIndent.Ast.Import.ImportingOrHiding ( src/HIndent/Ast/Import/ImportingOrHiding.hs, dist/build/HIndent/Ast/Import/ImportingOrHiding.o, dist/build/HIndent/Ast/Import/ImportingOrHiding.dyn_o )
[  3 of 113] Compiling HIndent.ByteString ( src/HIndent/ByteString.hs, dist/build/HIndent/ByteString.o, dist/build/HIndent/ByteString.dyn_o )
[  4 of 113] Compiling HIndent.CodeBlock ( src/HIndent/CodeBlock.hs, dist/build/HIndent/CodeBlock.o, dist/build/HIndent/CodeBlock.dyn_o )
[  5 of 113] Compiling HIndent.Error    ( src/HIndent/Error.hs, dist/build/HIndent/Error.o, dist/build/HIndent/Error.dyn_o )
[  6 of 113] Compiling HIndent.Fixity   ( src/HIndent/Fixity.hs, dist/build/HIndent/Fixity.o, dist/build/HIndent/Fixity.dyn_o )
[  7 of 113] Compiling HIndent.GhcLibParserWrapper.GHC.Hs.ImpExp ( src/HIndent/GhcLibParserWrapper/GHC/Hs/ImpExp.hs, dist/build/HIndent/GhcLibParserWrapper/GHC/Hs/ImpExp.o, dist/build/HIndent/GhcLibParserWrapper/GHC/Hs/ImpExp.dyn_o )
[  8 of 113] Compiling HIndent.GhcLibParserWrapper.GHC.Unit.Module.Warnings ( src/HIndent/GhcLibParserWrapper/GHC/Unit/Module/Warnings.hs, dist/build/HIndent/GhcLibParserWrapper/GHC/Unit/Module/Warnings.o, dist/build/HIndent/GhcLibParserWrapper/GHC/Unit/Module/Warnings.dyn_o )
[  9 of 113] Compiling HIndent.GhcLibParserWrapper.GHC.Hs ( src/HIndent/GhcLibParserWrapper/GHC/Hs.hs, dist/build/HIndent/GhcLibParserWrapper/GHC/Hs.o, dist/build/HIndent/GhcLibParserWrapper/GHC/Hs.dyn_o )
[ 10 of 113] Compiling HIndent.Language ( src/HIndent/Language.hs, dist/build/HIndent/Language.o, dist/build/HIndent/Language.dyn_o )

src/HIndent/Language.hs:18:1: warning: [-Wincomplete-patterns]
    Pattern match(es) are non-exhaustive
    In an equation for ‘convertLanguage’:
        Patterns of type ‘Cabal.Language’ not matched: Cabal.GHC2024
   |
18 | convertLanguage Cabal.Haskell98 = GLP.Haskell98
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
[ 11 of 113] Compiling HIndent.LanguageExtension.Types ( src/HIndent/LanguageExtension/Types.hs, dist/build/HIndent/LanguageExtension/Types.o, dist/build/HIndent/LanguageExtension/Types.dyn_o )
[ 12 of 113] Compiling HIndent.LanguageExtension.Conversion ( src/HIndent/LanguageExtension/Conversion.hs, dist/build/HIndent/LanguageExtension/Conversion.o, dist/build/HIndent/LanguageExtension/Conversion.dyn_o )
[ 13 of 113] Compiling HIndent.Parse    ( src/HIndent/Parse.hs, dist/build/HIndent/Parse.o, dist/build/HIndent/Parse.dyn_o )
[ 14 of 113] Compiling HIndent.Path.Find ( src/HIndent/Path/Find.hs, dist/build/HIndent/Path/Find.o, dist/build/HIndent/Path/Find.dyn_o )
[ 15 of 113] Compiling HIndent.Config   ( src/HIndent/Config.hs, dist/build/HIndent/Config.o, dist/build/HIndent/Config.dyn_o )
[ 16 of 113] Compiling HIndent.Pragma   ( src/HIndent/Pragma.hs, dist/build/HIndent/Pragma.o, dist/build/HIndent/Pragma.dyn_o )
[ 17 of 113] Compiling HIndent.LanguageExtension ( src/HIndent/LanguageExtension.hs, dist/build/HIndent/LanguageExtension.o, dist/build/HIndent/LanguageExtension.dyn_o )
[ 18 of 113] Compiling HIndent.CommandlineOptions ( src/HIndent/CommandlineOptions.hs, dist/build/HIndent/CommandlineOptions.o, dist/build/HIndent/CommandlineOptions.dyn_o )
[ 19 of 113] Compiling HIndent.CabalFile ( src/HIndent/CabalFile.hs, dist/build/HIndent/CabalFile.o, dist/build/HIndent/CabalFile.dyn_o )

src/HIndent/CabalFile.hs:69:52: error:
    • Couldn't match type: Distribution.Utils.Path.SymbolicPathX
                             'Distribution.Utils.Path.OnlyRelative
                             Distribution.Utils.Path.Source
                             'Distribution.Utils.Path.File
                     with: [Char]
      Expected: FilePath
        Actual: Distribution.Utils.Path.RelativePath
                  Distribution.Utils.Path.Source 'Distribution.Utils.Path.File
    • In the expression: modulePath exe
      In the third argument of ‘mkStanza’, namely ‘[modulePath exe]’
      In the expression: mkStanza (buildInfo exe) [] [modulePath exe]
   |
69 |       exeStanza exe = mkStanza (buildInfo exe) [] [modulePath exe]
   |                                                    ^^^^^^^^^^^^^^

src/HIndent/CabalFile.hs:78:41: error:
    • Couldn't match type: Distribution.Utils.Path.SymbolicPathX
                             'Distribution.Utils.Path.OnlyRelative
                             Distribution.Utils.Path.Source
                             'Distribution.Utils.Path.File
                     with: [Char]
      Expected: FilePath
        Actual: Distribution.Utils.Path.RelativePath
                  Distribution.Utils.Path.Source 'Distribution.Utils.Path.File
    • In the expression: path
      In the expression: [path]
      In a case alternative: TestSuiteExeV10 _ path -> [path]
   |
78 |              TestSuiteExeV10 _ path -> [path]
   |                                         ^^^^

src/HIndent/CabalFile.hs:84:42: error:
    • Couldn't match type: Distribution.Utils.Path.SymbolicPathX
                             'Distribution.Utils.Path.OnlyRelative
                             Distribution.Utils.Path.Source
                             'Distribution.Utils.Path.File
                     with: [Char]
      Expected: FilePath
        Actual: Distribution.Utils.Path.RelativePath
                  Distribution.Utils.Path.Source 'Distribution.Utils.Path.File
    • In the expression: path
      In the expression: [path]
      In a case alternative: BenchmarkExeV10 _ path -> [path]
   |
84 |               BenchmarkExeV10 _ path -> [path]
   |                                          ^^^^
[ 20 of 113] Compiling HIndent.Ast.NodeComments ( src/HIndent/Ast/NodeComments.hs, dist/build/HIndent/Ast/NodeComments.o, dist/build/HIndent/Ast/NodeComments.dyn_o )
[ 21 of 113] Compiling HIndent.Pretty.SigBindFamily ( src/HIndent/Pretty/SigBindFamily.hs, dist/build/HIndent/Pretty/SigBindFamily.o, dist/build/HIndent/Pretty/SigBindFamily.dyn_o )
[ 22 of 113] Compiling HIndent.ModulePreprocessing.CommentRelocation ( src/HIndent/ModulePreprocessing/CommentRelocation.hs, dist/build/HIndent/ModulePreprocessing/CommentRelocation.o, dist/build/HIndent/ModulePreprocessing/CommentRelocation.dyn_o )

src/HIndent/ModulePreprocessing/CommentRelocation.hs:47:1: warning: [-Wunused-imports]
    The import of ‘Data.Traversable’ is redundant
      except perhaps to import instances from ‘Data.Traversable’
    To import instances alone, use: import Data.Traversable()
   |
47 | import Data.Traversable
   | ^^^^^^^^^^^^^^^^^^^^^^^
[ 23 of 113] Compiling HIndent.ModulePreprocessing ( src/HIndent/ModulePreprocessing.hs, dist/build/HIndent/ModulePreprocessing.o, dist/build/HIndent/ModulePreprocessing.dyn_o )

src/HIndent/ModulePreprocessing.hs:19:1: warning: [-Wunused-imports]
    The import of ‘GHC.Stack’ is redundant
      except perhaps to import instances from ‘GHC.Stack’
    To import instances alone, use: import GHC.Stack()
   |
19 | import GHC.Stack
   | ^^^^^^^^^^^^^^^^

src/HIndent/ModulePreprocessing.hs:325:1: warning: [-Wmissing-signatures]
    Top-level binding with no type signature:
      getAnc :: Anchor -> RealSrcSpan
    |
325 | getAnc = anchor
    | ^^^^^^

src/HIndent/ModulePreprocessing.hs:325:1: warning: [-Wunused-top-binds]
    Defined but not used: ‘getAnc’
    |
325 | getAnc = anchor
    | ^^^^^^
[ 24 of 113] Compiling HIndent.Pretty.Types ( src/HIndent/Pretty/Types.hs, dist/build/HIndent/Pretty/Types.o, dist/build/HIndent/Pretty/Types.dyn_o )
[ 25 of 113] Compiling HIndent.Pretty.NodeComments ( src/HIndent/Pretty/NodeComments.hs, dist/build/HIndent/Pretty/NodeComments.o, dist/build/HIndent/Pretty/NodeComments.dyn_o )

src/HIndent/Pretty/NodeComments.hs:841:3: warning: [-Wincomplete-patterns]
    Pattern match(es) are non-exhaustive
    In an equation for ‘nodeComments’:
        Patterns of type ‘OverlapMode’ not matched: NonCanonical _
    |
841 |   nodeComments NoOverlap {} = emptyNodeComments
    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

src/HIndent/Pretty/NodeComments.hs:1215:3: warning: [-Wincomplete-patterns]
    Pattern match(es) are non-exhaustive
    In an equation for ‘nodeComments’:
        Patterns of type ‘HsLit GhcPs’ not matched:
            HsInt8Prim _ _
            HsInt16Prim _ _
            HsInt32Prim _ _
            HsWord8Prim _ _
            ...
     |
1215 |   nodeComments HsChar {} = emptyNodeComments
     |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
[ 26 of 113] Compiling HIndent.Printer  ( src/HIndent/Printer.hs, dist/build/HIndent/Printer.o, dist/build/HIndent/Printer.dyn_o )
[ 27 of 113] Compiling HIndent.Pretty.Combinators.Switch ( src/HIndent/Pretty/Combinators/Switch.hs, dist/build/HIndent/Pretty/Combinators/Switch.o, dist/build/HIndent/Pretty/Combinators/Switch.dyn_o )
[ 28 of 113] Compiling HIndent.Pretty.Combinators.String ( src/HIndent/Pretty/Combinators/String.hs, dist/build/HIndent/Pretty/Combinators/String.o, dist/build/HIndent/Pretty/Combinators/String.dyn_o )
[ 29 of 113] Compiling HIndent.Pretty.Combinators.RhsSeparator ( src/HIndent/Pretty/Combinators/RhsSeparator.hs, dist/build/HIndent/Pretty/Combinators/RhsSeparator.o, dist/build/HIndent/Pretty/Combinators/RhsSeparator.dyn_o )
[ 30 of 113] Compiling HIndent.Pretty.Combinators.Outputable ( src/HIndent/Pretty/Combinators/Outputable.hs, dist/build/HIndent/Pretty/Combinators/Outputable.o, dist/build/HIndent/Pretty/Combinators/Outputable.dyn_o )
[ 31 of 113] Compiling HIndent.Pretty.Combinators.Op ( src/HIndent/Pretty/Combinators/Op.hs, dist/build/HIndent/Pretty/Combinators/Op.o, dist/build/HIndent/Pretty/Combinators/Op.dyn_o )
[ 32 of 113] Compiling HIndent.Pretty.Combinators.Indent ( src/HIndent/Pretty/Combinators/Indent.hs, dist/build/HIndent/Pretty/Combinators/Indent.o, dist/build/HIndent/Pretty/Combinators/Indent.dyn_o )
[ 33 of 113] Compiling HIndent.Pretty.Combinators.Wrap ( src/HIndent/Pretty/Combinators/Wrap.hs, dist/build/HIndent/Pretty/Combinators/Wrap.o, dist/build/HIndent/Pretty/Combinators/Wrap.dyn_o )
[ 34 of 113] Compiling HIndent.Pretty.Combinators.Lineup ( src/HIndent/Pretty/Combinators/Lineup.hs, dist/build/HIndent/Pretty/Combinators/Lineup.o, dist/build/HIndent/Pretty/Combinators/Lineup.dyn_o )
[ 35 of 113] Compiling HIndent.Pretty.Combinators.Getter ( src/HIndent/Pretty/Combinators/Getter.hs, dist/build/HIndent/Pretty/Combinators/Getter.o, dist/build/HIndent/Pretty/Combinators/Getter.dyn_o )
[ 36 of 113] Compiling HIndent.Pretty.Combinators.Comment ( src/HIndent/Pretty/Combinators/Comment.hs, dist/build/HIndent/Pretty/Combinators/Comment.o, dist/build/HIndent/Pretty/Combinators/Comment.dyn_o )
[ 37 of 113] Compiling HIndent.Pretty.Combinators ( src/HIndent/Pretty/Combinators.hs, dist/build/HIndent/Pretty/Combinators.o, dist/build/HIndent/Pretty/Combinators.dyn_o )
[ 38 of 113] Compiling HIndent.Pretty[boot] ( src/HIndent/Pretty.hs-boot, dist/build/HIndent/Pretty.o-boot, dist/build/HIndent/Pretty.dyn_o-boot )
[ 39 of 113] Compiling HIndent.Ast.WithComments ( src/HIndent/Ast/WithComments.hs, dist/build/HIndent/Ast/WithComments.o, dist/build/HIndent/Ast/WithComments.dyn_o )
[ 40 of 113] Compiling HIndent.Ast.Type ( src/HIndent/Ast/Type.hs, dist/build/HIndent/Ast/Type.o, dist/build/HIndent/Ast/Type.dyn_o )
[ 41 of 113] Compiling HIndent.Ast.Name.Prefix ( src/HIndent/Ast/Name/Prefix.hs, dist/build/HIndent/Ast/Name/Prefix.o, dist/build/HIndent/Ast/Name/Prefix.dyn_o )
[ 42 of 113] Compiling HIndent.Ast.Type.Variable ( src/HIndent/Ast/Type/Variable.hs, dist/build/HIndent/Ast/Type/Variable.o, dist/build/HIndent/Ast/Type/Variable.dyn_o )
[ 43 of 113] Compiling HIndent.Ast.Name.Infix ( src/HIndent/Ast/Name/Infix.hs, dist/build/HIndent/Ast/Name/Infix.o, dist/build/HIndent/Ast/Name/Infix.dyn_o )
[ 44 of 113] Compiling HIndent.Ast.Expression.Splice ( src/HIndent/Ast/Expression/Splice.hs, dist/build/HIndent/Ast/Expression/Splice.o, dist/build/HIndent/Ast/Expression/Splice.dyn_o )
[ 45 of 113] Compiling HIndent.Ast.Declaration.Warning.Kind ( src/HIndent/Ast/Declaration/Warning/Kind.hs, dist/build/HIndent/Ast/Declaration/Warning/Kind.o, dist/build/HIndent/Ast/Declaration/Warning/Kind.dyn_o )
[ 46 of 113] Compiling HIndent.Ast.Declaration.Warning ( src/HIndent/Ast/Declaration/Warning.hs, dist/build/HIndent/Ast/Declaration/Warning.o, dist/build/HIndent/Ast/Declaration/Warning.dyn_o )
[ 47 of 113] Compiling HIndent.Ast.Declaration.Warning.Collection ( src/HIndent/Ast/Declaration/Warning/Collection.hs, dist/build/HIndent/Ast/Declaration/Warning/Collection.o, dist/build/HIndent/Ast/Declaration/Warning/Collection.dyn_o )
[ 48 of 113] Compiling HIndent.Ast.Declaration.TypeSynonym.Lhs ( src/HIndent/Ast/Declaration/TypeSynonym/Lhs.hs, dist/build/HIndent/Ast/Declaration/TypeSynonym/Lhs.o, dist/build/HIndent/Ast/Declaration/TypeSynonym/Lhs.dyn_o )
[ 49 of 113] Compiling HIndent.Ast.Declaration.TypeSynonym ( src/HIndent/Ast/Declaration/TypeSynonym.hs, dist/build/HIndent/Ast/Declaration/TypeSynonym.o, dist/build/HIndent/Ast/Declaration/TypeSynonym.dyn_o )
[ 50 of 113] Compiling HIndent.Ast.Declaration.Data.Deriving.Strategy ( src/HIndent/Ast/Declaration/Data/Deriving/Strategy.hs, dist/build/HIndent/Ast/Declaration/Data/Deriving/Strategy.o, dist/build/HIndent/Ast/Declaration/Data/Deriving/Strategy.dyn_o )
[ 51 of 113] Compiling HIndent.Ast.Declaration.StandAloneDeriving ( src/HIndent/Ast/Declaration/StandAloneDeriving.hs, dist/build/HIndent/Ast/Declaration/StandAloneDeriving.o, dist/build/HIndent/Ast/Declaration/StandAloneDeriving.dyn_o )
[ 52 of 113] Compiling HIndent.Ast.Declaration.Splice ( src/HIndent/Ast/Declaration/Splice.hs, dist/build/HIndent/Ast/Declaration/Splice.o, dist/build/HIndent/Ast/Declaration/Splice.dyn_o )
[ 53 of 113] Compiling HIndent.Ast.Declaration.Signature.StandaloneKind ( src/HIndent/Ast/Declaration/Signature/StandaloneKind.hs, dist/build/HIndent/Ast/Declaration/Signature/StandaloneKind.o, dist/build/HIndent/Ast/Declaration/Signature/StandaloneKind.dyn_o )
[ 54 of 113] Compiling HIndent.Ast.Declaration.Signature.Inline.Spec ( src/HIndent/Ast/Declaration/Signature/Inline/Spec.hs, dist/build/HIndent/Ast/Declaration/Signature/Inline/Spec.o, dist/build/HIndent/Ast/Declaration/Signature/Inline/Spec.dyn_o )
[ 55 of 113] Compiling HIndent.Ast.Declaration.Signature.Inline.Phase ( src/HIndent/Ast/Declaration/Signature/Inline/Phase.hs, dist/build/HIndent/Ast/Declaration/Signature/Inline/Phase.o, dist/build/HIndent/Ast/Declaration/Signature/Inline/Phase.dyn_o )
[ 56 of 113] Compiling HIndent.Ast.Declaration.Signature.Fixity.Associativity ( src/HIndent/Ast/Declaration/Signature/Fixity/Associativity.hs, dist/build/HIndent/Ast/Declaration/Signature/Fixity/Associativity.o, dist/build/HIndent/Ast/Declaration/Signature/Fixity/Associativity.dyn_o )
[ 57 of 113] Compiling HIndent.Ast.Declaration.Signature.Fixity ( src/HIndent/Ast/Declaration/Signature/Fixity.hs, dist/build/HIndent/Ast/Declaration/Signature/Fixity.o, dist/build/HIndent/Ast/Declaration/Signature/Fixity.dyn_o )
[ 58 of 113] Compiling HIndent.Ast.Declaration.Signature.BooleanFormula ( src/HIndent/Ast/Declaration/Signature/BooleanFormula.hs, dist/build/HIndent/Ast/Declaration/Signature/BooleanFormula.o, dist/build/HIndent/Ast/Declaration/Signature/BooleanFormula.dyn_o )
[ 59 of 113] Compiling HIndent.Ast.Declaration.Signature ( src/HIndent/Ast/Declaration/Signature.hs, dist/build/HIndent/Ast/Declaration/Signature.o, dist/build/HIndent/Ast/Declaration/Signature.dyn_o )
[ 60 of 113] Compiling HIndent.Ast.Declaration.Rule.Binder ( src/HIndent/Ast/Declaration/Rule/Binder.hs, dist/build/HIndent/Ast/Declaration/Rule/Binder.o, dist/build/HIndent/Ast/Declaration/Rule/Binder.dyn_o )
[ 61 of 113] Compiling HIndent.Ast.Declaration.Rule ( src/HIndent/Ast/Declaration/Rule.hs, dist/build/HIndent/Ast/Declaration/Rule.o, dist/build/HIndent/Ast/Declaration/Rule.dyn_o )
[ 62 of 113] Compiling HIndent.Ast.Declaration.Rule.Collection ( src/HIndent/Ast/Declaration/Rule/Collection.hs, dist/build/HIndent/Ast/Declaration/Rule/Collection.o, dist/build/HIndent/Ast/Declaration/Rule/Collection.dyn_o )
[ 63 of 113] Compiling HIndent.Ast.Declaration.Instance.Family.Type ( src/HIndent/Ast/Declaration/Instance/Family/Type.hs, dist/build/HIndent/Ast/Declaration/Instance/Family/Type.o, dist/build/HIndent/Ast/Declaration/Instance/Family/Type.dyn_o )
[ 64 of 113] Compiling HIndent.Ast.Declaration.Data.NewOrData ( src/HIndent/Ast/Declaration/Data/NewOrData.hs, dist/build/HIndent/Ast/Declaration/Data/NewOrData.o, dist/build/HIndent/Ast/Declaration/Data/NewOrData.dyn_o )
[ 65 of 113] Compiling HIndent.Ast.Declaration.Data.Record.Field ( src/HIndent/Ast/Declaration/Data/Record/Field.hs, dist/build/HIndent/Ast/Declaration/Data/Record/Field.o, dist/build/HIndent/Ast/Declaration/Data/Record/Field.dyn_o )
[ 66 of 113] Compiling HIndent.Ast.Declaration.Data.GADT.Constructor.Signature ( src/HIndent/Ast/Declaration/Data/GADT/Constructor/Signature.hs, dist/build/HIndent/Ast/Declaration/Data/GADT/Constructor/Signature.o, dist/build/HIndent/Ast/Declaration/Data/GADT/Constructor/Signature.dyn_o )
[ 67 of 113] Compiling HIndent.Ast.Declaration.Data.Haskell98.Constructor.Body ( src/HIndent/Ast/Declaration/Data/Haskell98/Constructor/Body.hs, dist/build/HIndent/Ast/Declaration/Data/Haskell98/Constructor/Body.o, dist/build/HIndent/Ast/Declaration/Data/Haskell98/Constructor/Body.dyn_o )
[ 68 of 113] Compiling HIndent.Ast.Context ( src/HIndent/Ast/Context.hs, dist/build/HIndent/Ast/Context.o, dist/build/HIndent/Ast/Context.dyn_o )
[ 69 of 113] Compiling HIndent.Ast.Declaration.Data.Haskell98.Constructor ( src/HIndent/Ast/Declaration/Data/Haskell98/Constructor.hs, dist/build/HIndent/Ast/Declaration/Data/Haskell98/Constructor.o, dist/build/HIndent/Ast/Declaration/Data/Haskell98/Constructor.dyn_o )
[ 70 of 113] Compiling HIndent.Ast.Declaration.Data.GADT.Constructor ( src/HIndent/Ast/Declaration/Data/GADT/Constructor.hs, dist/build/HIndent/Ast/Declaration/Data/GADT/Constructor.o, dist/build/HIndent/Ast/Declaration/Data/GADT/Constructor.dyn_o )
[ 71 of 113] Compiling HIndent.Ast.Declaration.Data.Deriving ( src/HIndent/Ast/Declaration/Data/Deriving.hs, dist/build/HIndent/Ast/Declaration/Data/Deriving.o, dist/build/HIndent/Ast/Declaration/Data/Deriving.dyn_o )
[ 72 of 113] Compiling HIndent.Ast.Declaration.Data.Deriving.Clause ( src/HIndent/Ast/Declaration/Data/Deriving/Clause.hs, dist/build/HIndent/Ast/Declaration/Data/Deriving/Clause.o, dist/build/HIndent/Ast/Declaration/Data/Deriving/Clause.dyn_o )
[ 73 of 113] Compiling HIndent.Ast.Declaration.Data.Body ( src/HIndent/Ast/Declaration/Data/Body.hs, dist/build/HIndent/Ast/Declaration/Data/Body.o, dist/build/HIndent/Ast/Declaration/Data/Body.dyn_o )
[ 74 of 113] Compiling HIndent.Ast.Declaration.Instance.Family.Data ( src/HIndent/Ast/Declaration/Instance/Family/Data.hs, dist/build/HIndent/Ast/Declaration/Instance/Family/Data.o, dist/build/HIndent/Ast/Declaration/Instance/Family/Data.dyn_o )
[ 75 of 113] Compiling HIndent.Ast.Declaration.Instance.Class.OverlapMode ( src/HIndent/Ast/Declaration/Instance/Class/OverlapMode.hs, dist/build/HIndent/Ast/Declaration/Instance/Class/OverlapMode.o, dist/build/HIndent/Ast/Declaration/Instance/Class/OverlapMode.dyn_o )

src/HIndent/Ast/Declaration/Instance/Class/OverlapMode.hs:31:1: warning: [-Wincomplete-patterns]
    Pattern match(es) are non-exhaustive
    In an equation for ‘mkOverlapMode’:
        Patterns of type ‘GHC.OverlapMode’ not matched: GHC.NonCanonical _
   |
31 | mkOverlapMode GHC.NoOverlap {} =
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
[ 76 of 113] Compiling HIndent.Ast.Declaration.Instance.Class ( src/HIndent/Ast/Declaration/Instance/Class.hs, dist/build/HIndent/Ast/Declaration/Instance/Class.o, dist/build/HIndent/Ast/Declaration/Instance/Class.dyn_o )
[ 77 of 113] Compiling HIndent.Ast.Declaration.Foreign.Safety ( src/HIndent/Ast/Declaration/Foreign/Safety.hs, dist/build/HIndent/Ast/Declaration/Foreign/Safety.o, dist/build/HIndent/Ast/Declaration/Foreign/Safety.dyn_o )
[ 78 of 113] Compiling HIndent.Ast.Declaration.Foreign.CallingConvention ( src/HIndent/Ast/Declaration/Foreign/CallingConvention.hs, dist/build/HIndent/Ast/Declaration/Foreign/CallingConvention.o, dist/build/HIndent/Ast/Declaration/Foreign/CallingConvention.dyn_o )
[ 79 of 113] Compiling HIndent.Ast.Declaration.Foreign ( src/HIndent/Ast/Declaration/Foreign.hs, dist/build/HIndent/Ast/Declaration/Foreign.o, dist/build/HIndent/Ast/Declaration/Foreign.dyn_o )
[ 80 of 113] Compiling HIndent.Ast.Declaration.Family.Type.ResultSignature ( src/HIndent/Ast/Declaration/Family/Type/ResultSignature.hs, dist/build/HIndent/Ast/Declaration/Family/Type/ResultSignature.o, dist/build/HIndent/Ast/Declaration/Family/Type/ResultSignature.dyn_o )
[ 81 of 113] Compiling HIndent.Ast.Declaration.Family.Type.Injectivity ( src/HIndent/Ast/Declaration/Family/Type/Injectivity.hs, dist/build/HIndent/Ast/Declaration/Family/Type/Injectivity.o, dist/build/HIndent/Ast/Declaration/Family/Type/Injectivity.dyn_o )
[ 82 of 113] Compiling HIndent.Ast.Declaration.Family.Type ( src/HIndent/Ast/Declaration/Family/Type.hs, dist/build/HIndent/Ast/Declaration/Family/Type.o, dist/build/HIndent/Ast/Declaration/Family/Type.dyn_o )
[ 83 of 113] Compiling HIndent.Ast.Declaration.Family.Data ( src/HIndent/Ast/Declaration/Family/Data.hs, dist/build/HIndent/Ast/Declaration/Family/Data.o, dist/build/HIndent/Ast/Declaration/Family/Data.dyn_o )
[ 84 of 113] Compiling HIndent.Ast.Declaration.Default ( src/HIndent/Ast/Declaration/Default.hs, dist/build/HIndent/Ast/Declaration/Default.o, dist/build/HIndent/Ast/Declaration/Default.dyn_o )
[ 85 of 113] Compiling HIndent.Ast.Declaration.Data.Header ( src/HIndent/Ast/Declaration/Data/Header.hs, dist/build/HIndent/Ast/Declaration/Data/Header.o, dist/build/HIndent/Ast/Declaration/Data/Header.dyn_o )
[ 86 of 113] Compiling HIndent.Ast.Declaration.Data ( src/HIndent/Ast/Declaration/Data.hs, dist/build/HIndent/Ast/Declaration/Data.o, dist/build/HIndent/Ast/Declaration/Data.dyn_o )
[ 87 of 113] Compiling HIndent.Ast.Declaration.Class.NameAndTypeVariables ( src/HIndent/Ast/Declaration/Class/NameAndTypeVariables.hs, dist/build/HIndent/Ast/Declaration/Class/NameAndTypeVariables.o, dist/build/HIndent/Ast/Declaration/Class/NameAndTypeVariables.dyn_o )
[ 88 of 113] Compiling HIndent.Ast.Declaration.Class.FunctionalDependency ( src/HIndent/Ast/Declaration/Class/FunctionalDependency.hs, dist/build/HIndent/Ast/Declaration/Class/FunctionalDependency.o, dist/build/HIndent/Ast/Declaration/Class/FunctionalDependency.dyn_o )
[ 89 of 113] Compiling HIndent.Ast.Declaration.Class ( src/HIndent/Ast/Declaration/Class.hs, dist/build/HIndent/Ast/Declaration/Class.o, dist/build/HIndent/Ast/Declaration/Class.dyn_o )
[ 90 of 113] Compiling HIndent.Ast.Declaration.Bind ( src/HIndent/Ast/Declaration/Bind.hs, dist/build/HIndent/Ast/Declaration/Bind.o, dist/build/HIndent/Ast/Declaration/Bind.dyn_o )
[ 91 of 113] Compiling HIndent.Ast.Role ( src/HIndent/Ast/Role.hs, dist/build/HIndent/Ast/Role.o, dist/build/HIndent/Ast/Role.dyn_o )
[ 92 of 113] Compiling HIndent.Ast.Declaration.Annotation.Role ( src/HIndent/Ast/Declaration/Annotation/Role.hs, dist/build/HIndent/Ast/Declaration/Annotation/Role.o, dist/build/HIndent/Ast/Declaration/Annotation/Role.dyn_o )
[ 93 of 113] Compiling HIndent.Ast.Declaration.Annotation.Provenance ( src/HIndent/Ast/Declaration/Annotation/Provenance.hs, dist/build/HIndent/Ast/Declaration/Annotation/Provenance.o, dist/build/HIndent/Ast/Declaration/Annotation/Provenance.dyn_o )
[ 94 of 113] Compiling HIndent.Ast.Declaration.Annotation ( src/HIndent/Ast/Declaration/Annotation.hs, dist/build/HIndent/Ast/Declaration/Annotation.o, dist/build/HIndent/Ast/Declaration/Annotation.dyn_o )
[ 95 of 113] Compiling HIndent.Ast.Declaration ( src/HIndent/Ast/Declaration.hs, dist/build/HIndent/Ast/Declaration.o, dist/build/HIndent/Ast/Declaration.dyn_o )
[ 96 of 113] Compiling HIndent.Ast.Expression.Bracket ( src/HIndent/Ast/Expression/Bracket.hs, dist/build/HIndent/Ast/Expression/Bracket.o, dist/build/HIndent/Ast/Expression/Bracket.dyn_o )
[ 97 of 113] Compiling HIndent.Pretty   ( src/HIndent/Pretty.hs, dist/build/HIndent/Pretty.o, dist/build/HIndent/Pretty.dyn_o )

src/HIndent/Pretty.hs:1659:5: warning: [-Wincomplete-patterns]
    Pattern match(es) are non-exhaustive
    In a case alternative:
        Patterns of type ‘GHC.HsLit GHC.GhcPs’ not matched:
            GHC.HsInt8Prim _ _
            GHC.HsInt16Prim _ _
            GHC.HsInt32Prim _ _
            GHC.HsWord8Prim _ _
            ...
     |
1659 |     case x of
     |     ^^^^^^^^^...

src/HIndent/Pretty.hs:1880:1: warning: [-Wmissing-signatures]
    Top-level binding with no type signature:
      getAnc :: GHC.Anchor -> GHC.RealSrcSpan
     |
1880 | getAnc = GHC.anchor
     | ^^^^^^
[ 98 of 113] Compiling HIndent.Ast.Module.Name ( src/HIndent/Ast/Module/Name.hs, dist/build/HIndent/Ast/Module/Name.o, dist/build/HIndent/Ast/Module/Name.dyn_o )
[ 99 of 113] Compiling HIndent.Ast.Module.Export.Entry ( src/HIndent/Ast/Module/Export/Entry.hs, dist/build/HIndent/Ast/Module/Export/Entry.o, dist/build/HIndent/Ast/Module/Export/Entry.dyn_o )
[100 of 113] Compiling HIndent.Ast.Module.Export.Collection ( src/HIndent/Ast/Module/Export/Collection.hs, dist/build/HIndent/Ast/Module/Export/Collection.o, dist/build/HIndent/Ast/Module/Export/Collection.dyn_o )
[101 of 113] Compiling HIndent.Ast.Import.Entry ( src/HIndent/Ast/Import/Entry.hs, dist/build/HIndent/Ast/Import/Entry.o, dist/build/HIndent/Ast/Import/Entry.dyn_o )
[102 of 113] Compiling HIndent.Ast.Import.Entry.Collection ( src/HIndent/Ast/Import/Entry/Collection.hs, dist/build/HIndent/Ast/Import/Entry/Collection.o, dist/build/HIndent/Ast/Import/Entry/Collection.dyn_o )
[103 of 113] Compiling HIndent.Ast.Import ( src/HIndent/Ast/Import.hs, dist/build/HIndent/Ast/Import.o, dist/build/HIndent/Ast/Import.dyn_o )
[104 of 113] Compiling HIndent.Ast.Import.Collection ( src/HIndent/Ast/Import/Collection.hs, dist/build/HIndent/Ast/Import/Collection.o, dist/build/HIndent/Ast/Import/Collection.dyn_o )
[105 of 113] Compiling HIndent.Ast.FileHeaderPragma ( src/HIndent/Ast/FileHeaderPragma.hs, dist/build/HIndent/Ast/FileHeaderPragma.o, dist/build/HIndent/Ast/FileHeaderPragma.dyn_o )
[106 of 113] Compiling HIndent.Ast.FileHeaderPragma.Collection ( src/HIndent/Ast/FileHeaderPragma/Collection.hs, dist/build/HIndent/Ast/FileHeaderPragma/Collection.o, dist/build/HIndent/Ast/FileHeaderPragma/Collection.dyn_o )
[107 of 113] Compiling HIndent.Ast.Module.Warning ( src/HIndent/Ast/Module/Warning.hs, dist/build/HIndent/Ast/Module/Warning.o, dist/build/HIndent/Ast/Module/Warning.dyn_o )
[108 of 113] Compiling HIndent.Ast.Module.Declaration ( src/HIndent/Ast/Module/Declaration.hs, dist/build/HIndent/Ast/Module/Declaration.o, dist/build/HIndent/Ast/Module/Declaration.dyn_o )
[109 of 113] Compiling HIndent.Ast.Declaration.Collection ( src/HIndent/Ast/Declaration/Collection.hs, dist/build/HIndent/Ast/Declaration/Collection.o, dist/build/HIndent/Ast/Declaration/Collection.dyn_o )
[110 of 113] Compiling HIndent.Ast.Module ( src/HIndent/Ast/Module.hs, dist/build/HIndent/Ast/Module.o, dist/build/HIndent/Ast/Module.dyn_o )
[111 of 113] Compiling HIndent.Ast      ( src/HIndent/Ast.hs, dist/build/HIndent/Ast.o, dist/build/HIndent/Ast.dyn_o )
[112 of 113] Compiling Paths_hindent    ( dist/build/autogen/Paths_hindent.hs, dist/build/Paths_hindent.o, dist/build/Paths_hindent.dyn_o )
Error: [Cabal-7125]
Failed to build hindent-6.2.0 (which is required by exe:hindent from hindent-6.2.0). See the build log above for details.
@mouse07410
Copy link
Author

Update

Building from Hackage fails.

Cloning to a local machine works:

$ git clone --recurse-submodules https://github.com/mihaimaruseac/hindent
Cloning into 'hindent'...
remote: Enumerating objects: 8933, done.
remote: Counting objects: 100% (414/414), done.
remote: Compressing objects: 100% (208/208), done.
remote: Total 8933 (delta 245), reused 346 (delta 199), pack-reused 8519 (from 1)
Receiving objects: 100% (8933/8933), 2.17 MiB | 2.16 MiB/s, done.
Resolving deltas: 100% (5379/5379), done.
$ cd hindent/
$ 
$ time cabal install --overwrite-policy=always
Wrote tarball sdist to
/Users/ur20980/src/hindent/dist-newstyle/sdist/hindent-6.2.0.tar.gz
Resolving dependencies...
Build profile: -w ghc-9.10.1 -O2
In order, the following will be built (use -v for more details):
 - Cabal-syntax-3.10.3.0 (lib) (requires build)
 - ghc-lib-parser-9.10.1.20241103 (lib) (requires download & build)
 - monad-loops-0.4.3 (lib) (requires build)
 - unicode-show-0.1.1.1 (lib) (requires build)
 - path-0.5.11 (lib) (requires download & build)
 - vector-algorithms-0.9.0.3 (lib) (requires build)
 - Cabal-3.10.3.0 (lib) (requires build)
 - ghc-lib-parser-ex-9.10.0.0 (lib) (requires download & build)
 - path-io-1.1.0 (lib) (requires download & build)
 - mono-traversable-1.0.20.0 (lib) (requires build)
 - conduit-1.3.6 (lib) (requires build)
 - libyaml-0.1.4 (lib) (requires build)
 - yaml-0.11.11.2 (lib) (requires build)
 - hindent-6.2.0 (lib) (requires build)
 - hindent-6.2.0 (exe:hindent) (requires build)
Downloading  ghc-lib-parser-9.10.1.20241103
Starting     monad-loops-0.4.3 (lib)
Starting     unicode-show-0.1.1.1 (lib)
Starting     vector-algorithms-0.9.0.3 (lib)
Starting     Cabal-syntax-3.10.3.0 (lib)
Downloaded   ghc-lib-parser-9.10.1.20241103
Downloading  ghc-lib-parser-ex-9.10.0.0
Starting     ghc-lib-parser-9.10.1.20241103 (lib)
Downloaded   ghc-lib-parser-ex-9.10.0.0
Downloading  path-0.5.11
Downloaded   path-0.5.11
Downloading  path-io-1.1.0
Starting     path-0.5.11 (lib)
Downloaded   path-io-1.1.0
Building     monad-loops-0.4.3 (lib)
Building     unicode-show-0.1.1.1 (lib)
Building     Cabal-syntax-3.10.3.0 (lib)
Building     path-0.5.11 (lib)
Building     vector-algorithms-0.9.0.3 (lib)
Building     ghc-lib-parser-9.10.1.20241103 (lib)
Installing   unicode-show-0.1.1.1 (lib)
Installing   monad-loops-0.4.3 (lib)
Completed    unicode-show-0.1.1.1 (lib)
Completed    monad-loops-0.4.3 (lib)
Installing   path-0.5.11 (lib)
Completed    path-0.5.11 (lib)
Starting     path-io-1.1.0 (lib)
Building     path-io-1.1.0 (lib)
Installing   vector-algorithms-0.9.0.3 (lib)
Installing   path-io-1.1.0 (lib)
Completed    vector-algorithms-0.9.0.3 (lib)
Starting     mono-traversable-1.0.20.0 (lib)
Completed    path-io-1.1.0 (lib)
Building     mono-traversable-1.0.20.0 (lib)
Installing   mono-traversable-1.0.20.0 (lib)
Completed    mono-traversable-1.0.20.0 (lib)
Starting     conduit-1.3.6 (lib)
Building     conduit-1.3.6 (lib)
Installing   conduit-1.3.6 (lib)
Completed    conduit-1.3.6 (lib)
Starting     libyaml-0.1.4 (lib)
Building     libyaml-0.1.4 (lib)
Installing   libyaml-0.1.4 (lib)
Completed    libyaml-0.1.4 (lib)
Starting     yaml-0.11.11.2 (lib)
Building     yaml-0.11.11.2 (lib)
Installing   yaml-0.11.11.2 (lib)
Completed    yaml-0.11.11.2 (lib)
Installing   Cabal-syntax-3.10.3.0 (lib)
Completed    Cabal-syntax-3.10.3.0 (lib)
Starting     Cabal-3.10.3.0 (lib)
Building     Cabal-3.10.3.0 (lib)
Installing   Cabal-3.10.3.0 (lib)
Completed    Cabal-3.10.3.0 (lib)
Installing   ghc-lib-parser-9.10.1.20241103 (lib)
Completed    ghc-lib-parser-9.10.1.20241103 (lib)
Starting     ghc-lib-parser-ex-9.10.0.0 (lib)
Building     ghc-lib-parser-ex-9.10.0.0 (lib)
Installing   ghc-lib-parser-ex-9.10.0.0 (lib)
Completed    ghc-lib-parser-ex-9.10.0.0 (lib)
Starting     hindent-6.2.0 (lib)
Building     hindent-6.2.0 (lib)
Installing   hindent-6.2.0 (lib)
Completed    hindent-6.2.0 (lib)
Starting     hindent-6.2.0 (exe:hindent)
Building     hindent-6.2.0 (exe:hindent)
Installing   hindent-6.2.0 (exe:hindent)
Completed    hindent-6.2.0 (exe:hindent)
Symlinking 'hindent' to '/Users/ur20980/.cabal/bin/hindent'

real	85m41.637s
user	13m11.650s
sys	1m38.483s
$

So, something appears to be wrong with the Hackage version, even though both the local repo and the Hackage version claim to be v6.2.0.

@mihaimaruseac
Copy link
Owner

That explains why we didn't notice this. We are building the package on CI and it succeeded.

I'll try to debug this over the coming weeks, apologies for the delay (Thanksgiving and December trip).

@toku-sa-n
Copy link
Collaborator

Sorry for the inconvenience. This problem is resolved on the current master as you see (#962), but it's not released yet.

@mouse07410
Copy link
Author

Eagerly waiting for the upcoming release. I confirm that master builds OK.

Happy Thanksgiving!

@mihaimaruseac
Copy link
Owner

Oooh, I forgot about that. Let's do a release then.

@mihaimaruseac
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants