script

Representations and fast conversions for Script (docs.ppad.tech/script).
git clone git://git.ppad.tech/script.git
Log | Files | Refs | README | LICENSE

ppad-script.cabal (2044B)


      1 cabal-version:      3.0
      2 name:               ppad-script
      3 version:            0.2.2
      4 synopsis:           Primitive Script support.
      5 license:            MIT
      6 license-file:       LICENSE
      7 author:             Jared Tobin
      8 maintainer:         jared@ppad.tech
      9 category:           Cryptography
     10 build-type:         Simple
     11 tested-with:        GHC == 9.10.3
     12 extra-doc-files:    CHANGELOG
     13 description:
     14   Representations for [Script](https://en.bitcoin.it/wiki/Script),
     15   including abstract syntax, 'ByteArray', and base16-encoded
     16   'ByteString' versions, as well as fast conversion utilities for
     17   working with them.
     18 
     19 flag llvm
     20   description: Use GHC's LLVM backend.
     21   default:     False
     22   manual:      True
     23 
     24 source-repository head
     25   type:     git
     26   location: git.ppad.tech/script.git
     27 
     28 library
     29   default-language: Haskell2010
     30   hs-source-dirs:   lib
     31   ghc-options:
     32       -Wall
     33   if flag(llvm)
     34     ghc-options: -fllvm -O2
     35   exposed-modules:
     36       Bitcoin.Prim.Script
     37   build-depends:
     38       base >= 4.9 && < 5
     39     , bytestring >= 0.9 && < 0.13
     40     , primitive >= 0.8 && < 0.10
     41     , ppad-base16 >= 0.2.1 && < 0.3
     42 
     43 test-suite script-tests
     44   type:                exitcode-stdio-1.0
     45   default-language:    Haskell2010
     46   hs-source-dirs:      test
     47   main-is:             Main.hs
     48 
     49   ghc-options:
     50     -rtsopts -Wall
     51 
     52   build-depends:
     53     , base
     54     , bytestring
     55     , ppad-base16
     56     , ppad-script
     57     , primitive
     58     , tasty
     59     , tasty-hunit
     60     , tasty-quickcheck
     61 
     62 benchmark script-bench
     63   type:                exitcode-stdio-1.0
     64   default-language:    Haskell2010
     65   hs-source-dirs:      bench
     66   main-is:             Main.hs
     67 
     68   ghc-options:
     69     -rtsopts -O2 -Wall
     70 
     71   build-depends:
     72       base
     73     , bytestring
     74     , criterion
     75     , deepseq
     76     , ppad-script
     77     , primitive
     78 
     79 benchmark script-weigh
     80   type:                exitcode-stdio-1.0
     81   default-language:    Haskell2010
     82   hs-source-dirs:      bench
     83   main-is:             Weight.hs
     84 
     85   ghc-options:
     86     -rtsopts -O2 -Wall
     87 
     88   build-depends:
     89       base
     90     , bytestring
     91     , deepseq
     92     , ppad-script
     93     , weigh
     94