ppad-base16-0.3.0: ppad-base16.cabal
cabal-version: 3.0
name: ppad-base16
version: 0.3.0
synopsis: Pure base16 encoding and decoding on bytestrings.
license: MIT
license-file: LICENSE
author: Jared Tobin
maintainer: jared@ppad.tech
category: Cryptography
build-type: Simple
tested-with: GHC == { 9.10.3 }
extra-doc-files: CHANGELOG
description:
Pure base16 (hexadecimal) encoding and decoding on bytestrings.
flag llvm
description: Use GHC's LLVM backend.
default: False
manual: True
flag sanitize
description: Build with AddressSanitizer and UndefinedBehaviorSanitizer.
default: False
manual: True
source-repository head
type: git
location: git.ppad.tech/base16.git
library
default-language: Haskell2010
hs-source-dirs: lib
ghc-options:
-Wall
if flag(llvm)
ghc-options: -fllvm -O2
exposed-modules:
Data.ByteString.Base16
Data.ByteString.Base16.Arm
build-depends:
base >= 4.9 && < 5
, bytestring >= 0.9 && < 0.13
c-sources:
cbits/base16_arm.c
if arch(aarch64)
cc-options: -march=armv8-a
if flag(sanitize)
cc-options: -fsanitize=address,undefined -fno-omit-frame-pointer
ghc-options: -optl=-fsanitize=address,undefined
test-suite base16-tests
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: test
main-is: Main.hs
ghc-options:
-rtsopts -Wall -O2
if flag(sanitize)
ghc-options: -optl=-fsanitize=address,undefined
build-depends:
base
, base16-bytestring
, bytestring
, ppad-base16
, tasty
, tasty-hunit
, tasty-quickcheck
benchmark base16-bench
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: bench
main-is: Main.hs
ghc-options:
-rtsopts -O2 -Wall
build-depends:
base
, base16
, base16-bytestring
, bytestring
, criterion
, ppad-base16
benchmark base16-weigh
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: bench
main-is: Weight.hs
ghc-options:
-rtsopts -O2 -Wall
build-depends:
base
, base16
, base16-bytestring
, bytestring
, criterion
, ppad-base16
, weigh