Skip to content
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
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,28 +211,28 @@ jobs:
SKIP_CABAL_BUILD: true

################################################################################
# Lint with cabal-fmt
# Lint with cabal-gild
################################################################################
lint-cabal-fmt:
name: Lint with cabal-fmt
lint-cabal-gild:
name: Lint with cabal-gild
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v6

- name: 🛠️ Setup cabal-fmt
uses: jorisdral/actions/setup-cabal-fmt@main
- name: 🛠️ Setup cabal-gild
uses: jorisdral/actions/setup-cabal-[email protected]
with:
cabal-fmt-version: "0.1.12"
cabal-gild-version: "1.5.0.1"
ghc-version: "9.6"
cabal-version: "3.12"
cabal-version: "3.16"
# The index-state is fixed to enable caching and ensure that the version
# regardless of the current state of Hackage head.
# If you want a newer version of cabal-fmt, use a more recent time.
hackage-index-state: "2025-09-15T11:44:03Z"
# If you want a newer version of cabal-gild, use a more recent time.
hackage-index-state: "2025-12-08T00:00:00Z"

- name: 🎗️ Lint with cabal-fmt
run: ./scripts/format-cabal-fmt.sh && git diff --exit-code
- name: 🎗️ Lint with cabal-gild
run: ./scripts/format-cabal-gild.sh && git diff --exit-code

################################################################################
# Lint with cabal
Expand Down
71 changes: 38 additions & 33 deletions botan-bindings/botan-bindings.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cabal-version: 3.0
name: botan-bindings
version: 0.1.0.0
synopsis: Raw Botan bindings
cabal-version: 3.0
name: botan-bindings
version: 0.1.0.0
synopsis: Raw Botan bindings
description:
Welcome to botan-bindings

Expand All @@ -14,57 +14,63 @@ description:

For more information, see the [README on Github](https://github.com/haskellfoundation/botan)

author: Leo D.
maintainer: [email protected], [email protected]
license: BSD-3-Clause
license-file: LICENSE
author: Leo D.
maintainer: [email protected], [email protected]
license: BSD-3-Clause
license-file: LICENSE
copyright:
Copyright (c) 2023-2024, Apotheca Labs
Copyright (c) 2024-2025, Haskell Foundation

build-type: Simple
category: Cryptography
build-type: Simple
category: Cryptography
extra-doc-files:
CHANGELOG.md
README.md

tested-with: GHC ==9.2 || ==9.4 || ==9.6 || ==9.8 || ==9.10 || ==9.12
tested-with: ghc ==9.2 || ==9.4 || ==9.6 || ==9.8 || ==9.10 || ==9.12

source-repository head
type: git
type: git
location: https://github.com/haskellfoundation/botan
subdir: botan-bindings
subdir: botan-bindings

source-repository this
type: git
type: git
location: https://github.com/haskellfoundation/botan
subdir: botan-bindings
tag: botan-bindings-0.1.0.0
subdir: botan-bindings
tag: botan-bindings-0.1.0.0

flag pkg-config
default: True
manual: False
default: True
manual: False
description: Use @pkg-config(1)@ to locate foreign @botan-3@ library.

common warnings
ghc-options:
-Wall -Wcompat -Wincomplete-uni-patterns
-Wincomplete-record-updates -Wpartial-fields -Widentities
-Wredundant-constraints -Wmissing-export-lists
-Wno-unticked-promoted-constructors -Wunused-packages
-Wall
-Wcompat
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wmissing-export-lists
-Wno-unticked-promoted-constructors
-Wunused-packages
-Wmissing-deriving-strategies

common language
default-language: GHC2021
default-language: GHC2021
default-extensions:
DerivingStrategies
PatternSynonyms
RecordWildCards
RoleAnnotations

library
import: warnings, language
hs-source-dirs: src
import: warnings, language
hs-source-dirs: src
default-extensions:
NoImplicitPrelude
OverloadedStrings
Expand All @@ -75,17 +81,17 @@ library
Botan.Bindings.Cipher
Botan.Bindings.Error
Botan.Bindings.FPE
Botan.Bindings.Hash
Botan.Bindings.HOTP
Botan.Bindings.Hash
Botan.Bindings.KDF
Botan.Bindings.KeyWrap
Botan.Bindings.MAC
Botan.Bindings.MPI
Botan.Bindings.Prelude
Botan.Bindings.PubKey
Botan.Bindings.PubKey.Decrypt
Botan.Bindings.PubKey.DH
Botan.Bindings.PubKey.DSA
Botan.Bindings.PubKey.Decrypt
Botan.Bindings.PubKey.ECDH
Botan.Bindings.PubKey.ECDSA
Botan.Bindings.PubKey.Ed25519
Expand All @@ -94,8 +100,8 @@ library
Botan.Bindings.PubKey.KeyAgreement
Botan.Bindings.PubKey.KeyEncapsulation
Botan.Bindings.PubKey.RSA
Botan.Bindings.PubKey.Sign
Botan.Bindings.PubKey.SM2
Botan.Bindings.PubKey.Sign
Botan.Bindings.PubKey.Verify
Botan.Bindings.PubKey.X25519
Botan.Bindings.PwdHash
Expand All @@ -108,14 +114,13 @@ library
Botan.Bindings.X509
Botan.Bindings.ZFEC

other-modules: Paths_botan_bindings
autogen-modules: Paths_botan_bindings
build-depends: base >=4.16 && <4.22
includes: botan/ffi.h
other-modules: Paths_botan_bindings
autogen-modules: Paths_botan_bindings
build-depends: base >=4.16 && <4.22
includes: botan/ffi.h

if flag(pkg-config)
-- NB: pkg-config is available on windows as well when using msys2
pkgconfig-depends: botan-3 >=3.0.0

else
extra-libraries: botan-3
Loading