Giter VIP home page Giter VIP logo

Comments (4)

hsyl20 avatar hsyl20 commented on May 28, 2024 1

There are merge conflicts due to recent merges in master. E.g. version bounds conflict on blaze-builder: perhaps we should ditch it completely (recent blaze-builder seems to use bytestring).

No PR from me soon. I don't have much time to fix this so I would prefer if you or someone else could take it from here. :)

from bytestring.

sjakobi avatar sjakobi commented on May 28, 2024

I'm also failing to build the benchmarks, even with GHC 7.0:

$ cabal build bench-bytestring -w ghc-7.0.4
...
BenchAll.hs:231:15: Not in scope: `getDataFileName'

With more recent GHC versions there are additional errors:

$ cabal build bench-bytestring -w ghc-8.0.2
...
BenchAll.hs:136:46: error:
    • Couldn't match expected type ‘Benchmarkable’
                  with actual type ‘IO ()’
    • In the second argument of ‘($)’, namely
        ‘benchIntEncodingB nRepl e’
      In the expression:
        bench (name ++ " (" ++ show nRepl ++ ")")
        $ benchIntEncodingB nRepl e
      In an equation for ‘benchBE’:
          benchBE name e
            = bench (name ++ " (" ++ show nRepl ++ ")")
              $ benchIntEncodingB nRepl e

BenchAll.hs:169:13: error:
    • Couldn't match type ‘Word8’ with ‘Int’
      Expected type: Word8 -> Word8
        Actual type: Int -> Word8
    • In the expression: fromIntegral . hashInt . w
      In an equation for ‘hashWord8’:
          hashWord8 = fromIntegral . hashInt . w

BenchAll.hs:169:38: error:
    • Couldn't match type ‘Word8’ with ‘Int’
      Expected type: Int -> Int
        Actual type: Int -> Word8
    • In the second argument of ‘(.)’, namely ‘w’
      In the second argument of ‘(.)’, namely ‘hashInt . w’
      In the expression: fromIntegral . hashInt . w

BenchAll.hs:231:15: error:
    Variable not in scope: getDataFileName :: [Char] -> IO FilePath

from bytestring.

hsyl20 avatar hsyl20 commented on May 28, 2024

I have fixed most errors here: https://github.com/hsyl20/bytestring/tree/hsyl20-fix-benchmarks

Just use stack build in bench directory and then stack exec -- some-benchmark

from bytestring.

sjakobi avatar sjakobi commented on May 28, 2024

@hsyl20 Awesome! Are you going to make a PR or should I try to take it from there?

from bytestring.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.