Skip to content

cabal install fails with ghc-9.10.3 (fedora) #192

@juhp

Description

@juhp

I tried to build on Fedora 44 and ran into:

$ cabal install dataframe
Building library for dataframe-1.1.0.0...
:
src/DataFrame/Functions.hs:361:48: error: [GHC-43085]
    • Overlapping instances for Show (a, b)
        arising from a use of ‘show’
      Matching instance:
        instance (Show a, Show b) => Show (a, b)
          -- Defined in ‘ghc-internal-9.1003.0:GHC.Internal.Show’
        ...plus one instance involving out-of-scope types
        (use -fprint-potential-instances to see them all)
      (The choice depends on the instantiation of ‘a, b’
       To pick the first instance above, use IncoherentInstances
       when compiling the other instance declarations)
    • In the first argument of ‘T.pack’, namely ‘(show mapping)’
      In the second argument of ‘(<>)’, namely ‘T.pack (show mapping)’
      In the ‘unaryName’ field of a record
    |
361 |             , unaryName = "recode " <> T.pack (show mapping)
    |                                                ^^^^

src/DataFrame/Functions.hs:381:75: error: [GHC-43085]
    • Overlapping instances for Show (a, b)
        arising from a use of ‘show’
      Matching instance:
        instance (Show a, Show b) => Show (a, b)
          -- Defined in ‘ghc-internal-9.1003.0:GHC.Internal.Show’
        ...plus one instance involving out-of-scope types
        (use -fprint-potential-instances to see them all)
      (The choice depends on the instantiation of ‘a, b’
       To pick the first instance above, use IncoherentInstances
       when compiling the other instance declarations)
    • In the first argument of ‘T.pack’, namely ‘(show mapping)’
      In the second argument of ‘(<>)’, namely ‘T.pack (show mapping)’
      In the second argument of ‘(<>)’, namely
        ‘" " <> T.pack (show mapping)’
    |
381 |                 "recodeWithDefault " <> T.pack (show d) <> " " <> T.pack (show mapping)
    |                                                                           ^^^^
:
Error: [Cabal-7125]
Failed to build dataframe-1.1.0.0 (which is required by flib:dataframe-arrow from dataframe-1.1.0.0, exe:synthesis from dataframe-1.1.0.0 and others). See the build log above for details.

(Yes I know cabal install may not make so much sense here - I was using it to debug the compile failure: see below.)

Actually stack --resolver lts-24 build dataframe granite-0.4.0.0 snappy-hs-0.1.0.5 succeeds for me (and nightly).
It is possible some bound is missing perhaps.

Just thought I would report it: note, I originally hit this via scripths examples/analysis.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions