Coder Social home page Coder Social logo

Comments (3)

dinosaure avatar dinosaure commented on June 10, 2024 1

What am I missing?

The transition is a bit more complex than that, Zlib_deflate.error does not exists anymore and all the API was updated since 1.0.0 (I did not detailed how to update an decompress.0.8.0's code to decompress.1.0.0 but I notified a huge breaking change at the release).

I can take a look and propose a PR to help you about the migration 👍.

from decompress.

dinosaure avatar dinosaure commented on June 10, 2024

Hi, decompress.1.0.0 introduces a new package layout where the package decompress is a meta-empty package which have nothing. Then, 3 packages exists:

  • decompress.de which implements RFC1951
  • decompress.zl which implements Zlib
  • decompress.gz which implements Gzip

So it depends on what you want. I can infer that you probably want Zlib and in this case, a dune file should be:

(executable
 (name my_exe)
 (libraries checkseum.ocaml decompress.zl))

Then, the layout of modules changes a bit too where the module Decompress does not exist anymore but Zl (if you link with decompress.zl) exists. I just discovered that the documentation was not updated properly but now you can get it now at this address: https://mirage.github.io/decompress/decompress/Zl/index.html

For a normal use (without a micro control of allocation), Higher is the most easy entry-point.

I should update the README.md about this new version. If you have any question, please don't hesitate - I will close this issue when I will update the README.md.

from decompress.

shakthimaan avatar shakthimaan commented on June 10, 2024

I have made the following changes:

  • Used decompress.zl in the dune file.
  • Updated to use open De instead of open Decompress.
    Now I get this error:
File "benchmarks/decompress/test_decompress.ml", line 6, characters 27-45:
6 | exception Deflate_error of Zlib_deflate.error
                               ^^^^^^^^^^^^^^^^^^
Error: Unbound module Zlib_deflate

What am I missing?

from decompress.

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.