-- Initial wide-word.cabal generated by cabal init.  For further
-- documentation, see http://haskell.org/cabal/users-guide/

name:                wide-word
version:             0.1.0.7
synopsis:            Data types for large but fixed width signed and unsigned integers
description:
  A library to provide data types for large (ie > 64 bits) but fixed width signed
  and unsigned integers with the usual typeclass instances to allow them to be used
  interchangeably with `Word64`.
  .
  The types and operations are coded to be as fast as possible using strictness
  annotations, `INLINEABLE` pragmas and unboxed values and operations where
  appropriate.
homepage:            https://github.com/erikd/wide-word
bug-reports:         https://github.com/erikd/wide-word/issues/
license:             BSD2
license-file:        LICENSE
author:              Erik de Castro Lopo
maintainer:          erikd@mega-nerd.com
copyright:           Copyright (c) 2017 Erik de Castro Lopo <erikd@mega-nerd.com>
category:            Data
build-type:          Simple
extra-source-files:  ChangeLog.md
stability:           provisional
cabal-version:       >=1.10

library
  default-language:   Haskell2010
  ghc-options:        -Wall -fwarn-tabs
  hs-source-dirs:     src
  other-extensions:   StrictData

  exposed-modules:     Data.WideWord
                       Data.WideWord.Word128
                       Data.WideWord.Int128

  build-depends:       base                          >= 4.8         && < 5.0
                     , deepseq                       >= 1.3         && < 1.5
                     , ghc-prim

test-suite test
  default-language:   Haskell2010
  ghc-options:        -Wall -fwarn-tabs -threaded -O2
  type:               exitcode-stdio-1.0

  main-is:            test.hs
  hs-source-dirs:     test

  other-modules:      Test.Data.WideWord.Gen
                      Test.Data.WideWord.Int128
                      Test.Data.WideWord.Word128

  build-depends:       base                          >= 4.8         && < 5.0
                     , bytestring                    >= 0.10
                     , ghc-prim
                     , hedgehog                      == 0.6.*
                     , wide-word