GithubHelp home page GithubHelp logo

pxqr / base32-bytestring Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 14.0 253 KB

Efficient base32 codec for bytestrings.

Home Page: http://hackage.haskell.org/package/base32-bytestring

License: BSD 3-Clause "New" or "Revised" License

Haskell 100.00%

base32-bytestring's Introduction

base32-bytestring's People

Contributors

danielg avatar pxqr avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

base32-bytestring's Issues

This package does not build with GHC 9.4.8.

what I do

% git remote -v
origin	https://github.com/pxqr/base32-bytestring.git (fetch)
origin	https://github.com/pxqr/base32-bytestring.git (push)
% git rev-parse @
3a6fe39aa734fd053baababdc8afa413999c8cd1
% ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.4.8
% cabal build
Build profile: -w ghc-9.4.8 -O1
In order, the following will be built (use -v for more details):
 - base32-bytestring-0.2.1.0 (lib) (first run)
Preprocessing library for base32-bytestring-0.2.1.0..
Building library for base32-bytestring-0.2.1.0..
[1 of 3] Compiling Data.ByteString.Base32.Internal ( src/Data/ByteString/Base32/Internal.hs, /tmp/base32-bytestring/dist-newstyle/build/x86_64-linux/ghc-9.4.8/base32-bytestring-0.2.1.0/build/Data/ByteString/Base32/Internal.o, /tmp/base32-bytestring/dist-newstyle/build/x86_64-linux/ghc-9.4.8/base32-bytestring-0.2.1.0/build/Data/ByteString/Base32/Internal.dyn_o )

src/Data/ByteString/Base32/Internal.hs:73:1: error:
    Parse error in pattern: unpack5Ptr In a function binding for the ‘@’ operator.
                            Perhaps you meant an as-pattern, which must not be surrounded by whitespace
   |
73 | unpack5Ptr !tbl bs @ (PS fptr off sz) =
   | ^^^^^^^^^^^^^^^^^^
Error: cabal: Failed to build base32-bytestring-0.2.1.0.

what should happen

Running cabal build should build the package.

discussion

The reason for this error is that the parsing of @ has become white space sensitive, I think since the proposal ghc-proposals/ghc-proposals#229, so in this case white space about the @ needs to be cut away.

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.