You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by si...@apache.org on 2023/09/18 09:04:15 UTC

[incubator-opendal] branch haskell-rename updated (c7ea1c188 -> 9156c7a99)

This is an automated email from the ASF dual-hosted git repository.

silver pushed a change to branch haskell-rename
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


 discard c7ea1c188 chore(bindings/haskell): rename library name from opendal-hs to opendal
     new 9156c7a99 chore(bindings/haskell): rename library name from opendal-hs to opendal

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (c7ea1c188)
            \
             N -- N -- N   refs/heads/haskell-rename (9156c7a99)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/bindings_haskell.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


[incubator-opendal] 01/01: chore(bindings/haskell): rename library name from opendal-hs to opendal

Posted by si...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

silver pushed a commit to branch haskell-rename
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit 9156c7a99dfbc1d2759698c79b9616a00c8f2afb
Author: silver-ymz <yi...@gmail.com>
AuthorDate: Mon Sep 18 17:04:01 2023 +0800

    chore(bindings/haskell): rename library name from opendal-hs to opendal
    
    Signed-off-by: silver-ymz <yi...@gmail.com>
---
 .github/workflows/bindings_haskell.yml               |  2 +-
 .github/workflows/docs.yml                           |  2 +-
 bindings/haskell/CONTRIBUTING.md                     |  6 +++---
 bindings/haskell/README.md                           |  2 +-
 bindings/haskell/{opendal-hs.cabal => opendal.cabal} | 13 ++++++++++---
 5 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/bindings_haskell.yml b/.github/workflows/bindings_haskell.yml
index 4793bcd3e..507a900ee 100644
--- a/.github/workflows/bindings_haskell.yml
+++ b/.github/workflows/bindings_haskell.yml
@@ -97,7 +97,7 @@ jobs:
         run: |
           cargo package --target-dir target
           cd target/package
-          tar xf opendal-hs-*.crate --strip-components=1
+          tar xf opendal-*.crate --strip-components=1
           cabal sdist
       - name: Upload artifact
         uses: actions/upload-artifact@v3
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 25f2ea8f6..9f8ee5315 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -209,7 +209,7 @@ jobs:
         working-directory: "bindings/haskell"
         run: |
           cabal haddock --haddock-html --haddock-quickjump --haddock-hyperlink-source
-          find dist-newstyle -path '**/build/**/doc' -exec cp -r {}/html/opendal-hs/ doc \;
+          find dist-newstyle -path '**/build/**/doc' -exec cp -r {}/html/opendal/ doc \;
 
       - name: Upload docs
         uses: actions/upload-artifact@v3
diff --git a/bindings/haskell/CONTRIBUTING.md b/bindings/haskell/CONTRIBUTING.md
index 277c65d73..2cdb28ada 100644
--- a/bindings/haskell/CONTRIBUTING.md
+++ b/bindings/haskell/CONTRIBUTING.md
@@ -69,8 +69,8 @@ LD_LIBRARY_PATH=../../target/debug cabal test
 
 ```text
 ...(Build Info)
-Test suite opendal-hs-test: RUNNING...
-Test suite opendal-hs-test: PASS
+Test suite opendal-test: RUNNING...
+Test suite opendal-test: PASS
 Test suite logged to: 
 ...(Log Path)
 1 of 1 test suites (1 of 1 test cases) passed.
@@ -84,7 +84,7 @@ To generate the documentation:
 cabal haddock
 ```
 
-If your `cabal` version is greater than `3.8`, you can use `cabal haddock --open` to open the documentation in your browser. Otherwise, you can visit the documentation from `dist-newstyle/build/$ARCH/ghc-$VERSION/opendal-hs-$VERSION/doc/html/opendal-hs/index.html`.
+If your `cabal` version is greater than `3.8`, you can use `cabal haddock --open` to open the documentation in your browser. Otherwise, you can visit the documentation from `dist-newstyle/build/$ARCH/ghc-$VERSION/opendal-$VERSION/doc/html/opendal/index.html`.
 
 ## Misc
 
diff --git a/bindings/haskell/README.md b/bindings/haskell/README.md
index 0c93503c1..fac856aad 100644
--- a/bindings/haskell/README.md
+++ b/bindings/haskell/README.md
@@ -62,4 +62,4 @@ To generate the documentation:
 cabal haddock
 ```
 
-If your `cabal` version is greater than `3.8`, you can use `cabal haddock --open` to open the documentation in your browser. Otherwise, you can visit the documentation from `dist-newstyle/build/$ARCH/ghc-$VERSION/opendal-hs-$VERSION/doc/html/opendal-hs/index.html`.
\ No newline at end of file
+If your `cabal` version is greater than `3.8`, you can use `cabal haddock --open` to open the documentation in your browser. Otherwise, you can visit the documentation from `dist-newstyle/build/$ARCH/ghc-$VERSION/opendal-$VERSION/doc/html/opendal/index.html`.
\ No newline at end of file
diff --git a/bindings/haskell/opendal-hs.cabal b/bindings/haskell/opendal.cabal
similarity index 89%
rename from bindings/haskell/opendal-hs.cabal
rename to bindings/haskell/opendal.cabal
index 76cd203ec..cb9193b1f 100644
--- a/bindings/haskell/opendal-hs.cabal
+++ b/bindings/haskell/opendal.cabal
@@ -16,7 +16,7 @@ cabal-version:      3.0
 -- specific language governing permissions and limitations
 -- under the License.
 
-name:               opendal-hs
+name:               opendal
 version:            0.1.0.0
 license:            Apache-2.0
 synopsis:           OpenDAL Haskell Binding
@@ -36,6 +36,13 @@ custom-setup
 source-repository head
     type:     git
     location: https://github.com/apache/incubator-opendal
+    subdir:   bindings/haskell
+
+source-repository this
+    type:     git
+    location: https://github.com/apache/incubator-opendal
+    tag:      v0.40.0
+    subdir:   bindings/haskell
 
 common base
     ghc-options:      -Wall
@@ -64,13 +71,13 @@ library
     hs-source-dirs:   haskell-src
     extra-bundled-libraries: opendal_hs
 
-test-suite opendal-hs-test
+test-suite opendal-test
     import:           base
     type:             exitcode-stdio-1.0
     main-is:          Spec.hs
     other-modules:    BasicTest
     hs-source-dirs:   test
     build-depends:    
-        opendal-hs,
+        opendal,
         tasty >= 1.5 && < 1.6,
         tasty-hunit >= 0.10.1 && < 0.11,
\ No newline at end of file