cabal-version: 3.0
name: keynub-licdongle
version: 1.1.1
synopsis: Client for the KeyNub USB license dongle
description:
Verify that a KeyNub USB license dongle is genuine, read and write the
license records it stores, use its hardware counters and encrypt data so
that only a dongle can decrypt it. Pure Haskell over the SDK's flat C API:
the native library is loaded at run time, nothing is linked.
homepage: https://www.keynub.com/developers/haskell/
bug-reports: https://github.com/AB-KeyNub/KeyNub-SDK/issues
license: Apache-2.0
license-file: LICENSE
author: KeyNub
maintainer: info@keynub.com
copyright: 2026 KeyNub
category: Hardware
build-type: Simple
extra-doc-files: README.md
CHANGELOG.md
tested-with: GHC == 9.12.4
source-repository head
type: git
location: https://github.com/AB-KeyNub/KeyNub-SDK.git
subdir: bindings/haskell
common shared
default-language: Haskell2010
ghc-options: -Wall
build-depends: base >= 4.14 && < 5
library
import: shared
hs-source-dirs: src
exposed-modules: KeyNub.LicDongle
KeyNub.LicDongle.Library
build-depends: bytestring >= 0.10 && < 0.13,
directory >= 1.3 && < 1.4,
filepath >= 1.4 && < 1.6
if os(windows)
build-depends: Win32 >= 2.6 && < 2.15
else
build-depends: unix >= 2.7 && < 2.9
test-suite stub
import: shared
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: StubTest.hs
build-depends: keynub-licdongle,
bytestring,
directory,
filepath,
process >= 1.6 && < 1.7