Skip to content

Doesn't build with GHC 7.10 #17

Open

Description

@robdockins

Sadly, relaxing package upper bounds doesn't just work:

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.1

$ cabal install bitset==1.4.8 --allow-newer
Configuring bitset-1.4.8...
Building bitset-1.4.8...
Preprocessing library bitset-1.4.8...

src/GHC/Integer/GMP/TypeExt.hs:16:8:
    Could not find module ‘GHC.Integer.GMP.Prim’
    Use -v to see a list of the files searched for.
Failed to install bitset-1.4.8

Activity

  1. miguel-negrao commented on Oct 7, 2015

    @miguel-negrao

    Is it to be expected that at some point this package will be upgraded to use version 1.0.0.0 of integer-gmp ? It would be useful to know what are the intentions.

  2. superbobry commented on Oct 7, 2015

    @superbobry
    Member

    I haven't looked into the sources of the new integer-gmp yet, but since it's complete re-write my guess is that a backward-compatible migration might take some time.

  3. NCrashed commented on Dec 27, 2015

    @NCrashed

    I have ported the library to 7.10.2, but dropped backward compatibility (I need to checkout henet package if it fits my needs). Perhaps, someone could reuse the work: https://github.com/Teaspot-Studio/bitset

  4. superbobry commented on Jan 5, 2016

    @superbobry
    Member

    Cool! I think backward compatibility is just a question of free time and some ifdef hackery. Feel free to submit a PR.

  5. treeowl commented on Jun 9, 2016

    @treeowl
    Contributor

    @superbobry, my big question is why bitset reimplements instance Bits Integer at all. If there's an efficiency problem with what base does there, shouldn't that be pushed upstream? And if there isn't (any longer) such a problem, shouldn't we strip out all the extra code? This whole thing seems strange. One issue I know about is that some Bits instances in base fail to INLINE some things they should. It would be much nicer to work around this problem using GHC.Exts.inline, which for non-GHC implementations can be defined as id, instead of digging around in Integer internals.

  6. treeowl commented on Jun 9, 2016

    @treeowl
    Contributor

    Ahh..... I see. https://ghc.haskell.org/trac/ghc/ticket/7860 is still open after all these years.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions