Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(bindings/haskell): rename library name from opendal-hs to opendal #3112

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/bindings_haskell.yml
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions bindings/haskell/CONTRIBUTING.md
Expand Up @@ -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.
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion bindings/haskell/README.md
Expand Up @@ -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`.
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`.
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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,