Skip to content

v0.7.4 WASM support: CHANGELOG, bump CI, clean .cabal file #17

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

Merged
merged 1 commit into from
Mar 27, 2025
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ jobs:
run: cabal build all --dependencies-only

- run: cabal build all
- run: cabal build all --enable-tests
- run: cabal test all
- run: cabal haddock
if: matrix.ghc == '9.12'
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#
# For more information, see https://github.com/haskell-CI/haskell-ci
#
# version: 0.19.20241223
# version: 0.19.20250327
#
# REGENDATA ("0.19.20241223",["github","unix-compat.cabal"])
# REGENDATA ("0.19.20250327",["github","unix-compat.cabal"])
#
name: Haskell-CI
on:
Expand All @@ -23,7 +23,7 @@ on:
jobs:
linux:
name: Haskell-CI - Linux - ${{ matrix.compiler }}
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
timeout-minutes:
60
container:
Expand All @@ -32,9 +32,9 @@ jobs:
strategy:
matrix:
include:
- compiler: ghc-9.12.1
- compiler: ghc-9.12.2
compilerKind: ghc
compilerVersion: 9.12.1
compilerVersion: 9.12.2
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.10.1
Expand All @@ -47,9 +47,9 @@ jobs:
compilerVersion: 9.8.4
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.6.6
- compiler: ghc-9.6.7
compilerKind: ghc
compilerVersion: 9.6.6
compilerVersion: 9.6.7
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.4.8
Expand Down Expand Up @@ -106,12 +106,12 @@ jobs:
- name: Install GHCup
run: |
mkdir -p "$HOME/.ghcup/bin"
curl -sL https://downloads.haskell.org/ghcup/0.1.30.0/x86_64-linux-ghcup-0.1.30.0 > "$HOME/.ghcup/bin/ghcup"
curl -sL https://downloads.haskell.org/ghcup/0.1.50.1/x86_64-linux-ghcup-0.1.50.1 > "$HOME/.ghcup/bin/ghcup"
chmod a+x "$HOME/.ghcup/bin/ghcup"
- name: Install cabal-install
run: |
"$HOME/.ghcup/bin/ghcup" install cabal 3.14.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
echo "CABAL=$HOME/.ghcup/bin/cabal-3.14.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
"$HOME/.ghcup/bin/ghcup" install cabal 3.12.1.0 || (cat "$HOME"/.ghcup/logs/*.* && false)
echo "CABAL=$HOME/.ghcup/bin/cabal-3.12.1.0 -vnormal+nowrap" >> "$GITHUB_ENV"
- name: Install GHC (GHCup)
if: matrix.setup-method == 'ghcup'
run: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:

- os: macos-latest
ghc: 9.10.1
resolver: nightly-2025-01-16
resolver: nightly-2025-03-27
- os: macos-latest
ghc: 9.8.4
resolver: lts-23.4
resolver: lts-23.14
- os: macos-latest
ghc: 9.2.8
resolver: lts-20.26
Expand All @@ -35,20 +35,20 @@ jobs:

- os: windows-latest
ghc: 9.10.1
resolver: nightly-2025-01-16
resolver: nightly-2025-03-27
- os: windows-latest
ghc: 9.8.4
resolver: lts-23.4
resolver: lts-23.14
- os: windows-latest
ghc: 8.4.4
resolver: lts-12.26

- os: ubuntu-latest
ghc: 9.10.1
resolver: nightly-2025-01-16
resolver: nightly-2025-03-27
- os: ubuntu-latest
ghc: 9.8.4
resolver: lts-23.4
resolver: lts-23.14
- os: ubuntu-latest
ghc: 9.6.6
resolver: lts-22.43
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
${{ steps.setup.outputs.stack-root }}/snapshots
key: ${{ steps.cache-deps.outputs.cache-primary-key }}

## Build and test STMonadTrans
## Build and test
########################################################################

- name: Build w/ tests
Expand Down
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## Unreleased
## Version 0.7.4 (2025-03-27)

- Add wasm32-wasi support.
- Add `wasm32-wasi` support
([PR #16](https://github.com/haskell-pkg-janitors/unix-compat/pull/16)).
- Tested with GHC 8.0 - 9.12.

## Version 0.7.3 (2024-10-11)

Expand Down
48 changes: 5 additions & 43 deletions unix-compat.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cabal-version: >= 1.10
cabal-version: 1.18
name: unix-compat
version: 0.7.3
x-revision: 1
version: 0.7.4
synopsis: Portable POSIX-compatibility layer.
description: This package provides portable implementations of parts
of the unix package. This package re-exports the unix
Expand All @@ -17,10 +16,10 @@ category: System
build-type: Simple

tested-with:
GHC == 9.12.1
GHC == 9.12.2
GHC == 9.10.1
GHC == 9.8.4
GHC == 9.6.6
GHC == 9.6.7
GHC == 9.4.8
GHC == 9.2.8
GHC == 9.0.2
Expand All @@ -31,7 +30,7 @@ tested-with:
GHC == 8.2.2
GHC == 8.0.2

extra-source-files:
extra-doc-files:
CHANGELOG.md

source-repository head
Expand Down Expand Up @@ -94,21 +93,6 @@ Test-Suite unix-compat-testsuite
LinksSpec
ProcessSpec

-- ghc-options:
-- -Wall
-- -fwarn-tabs
-- -funbox-strict-fields
-- -threaded
-- -fno-warn-unused-do-bind
-- -fno-warn-type-defaults

-- extensions:
-- OverloadedStrings
-- ExtendedDefaultRules

-- if flag(lifted)
-- cpp-options: -DLIFTED

build-depends:
unix-compat
, base
Expand All @@ -120,28 +104,6 @@ Test-Suite unix-compat-testsuite
, extra
, temporary

if os(windows)
-- c-sources:
-- cbits/HsUname.c
-- cbits/mktemp.c

-- extra-libraries: msvcrt
-- build-depends: Win32 >= 2.5.0.0
build-depends: time
build-depends: directory

-- other-modules:
-- System.PosixCompat.Internal.Time

else
-- build-depends: unix >= 2.4 && < 2.9
-- include-dirs: include
-- includes: HsUnixCompat.h
-- install-includes: HsUnixCompat.h
-- c-sources: cbits/HsUnixCompat.c
if os(solaris)
cc-options: -DSOLARIS

default-language: Haskell2010
ghc-options:
-Wall
Expand Down