packages feed

hw-dump-0.1.0.0: hw-dump.cabal

cabal-version:        2.2

name:                 hw-dump
version:              0.1.0.0
synopsis:             File Dump
description:          Please see README.md
category:             Data, Bit
stability:            Experimental
homepage:             http://github.com/haskell-works/hw-dump#readme
bug-reports:          https://github.com/haskell-works/hw-dump/issues
author:               John Ky
maintainer:           newhoggy@gmail.com
copyright:            2016-2019 John Ky
license:              BSD-3-Clause
license-file:         LICENSE
build-type:           Simple
extra-source-files:
  README.md

source-repository head
  type: git
  location: https://github.com/haskell-works/hw-dump

flag sse42
  description: Enable SSE 4.2 optimisations.
  manual: False
  default: True

common base                 { build-depends: base                 >= 4          && < 5      }

common QuickCheck           { build-depends: QuickCheck           >= 2.10       && < 2.14   }
common bits-extra           { build-depends: bits-extra                                     }
common bytestring           { build-depends: bytestring                                     }
common criterion            { build-depends: criterion                                      }
common generic-lens         { build-depends: generic-lens                                   }
common hedgehog             { build-depends: hedgehog                                       }
common hspec                { build-depends: hspec                                          }
common hw-bits              { build-depends: hw-bits              >= 0.7.0.3                }
common hw-hspec-hedgehog    { build-depends: hw-hspec-hedgehog                              }
common hw-prim              { build-depends: hw-prim              >= 0.6.2.19               }
common lens                 { build-depends: lens                                           }
common optparse-applicative { build-depends: optparse-applicative                           }
common safe                 { build-depends: safe                                           }
common vector               { build-depends: vector                                         }

common config
  default-language:     Haskell2010
  ghc-options:          -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
  if flag(sse42)
    ghc-options: -msse4.2

library
  import:   base, config
          , bits-extra
          , bytestring
          , hw-bits
          , hw-prim
          , safe
          , vector
  exposed-modules:
    HaskellWorks.Data.Dump
  other-modules:        Paths_hw_dump
  autogen-modules:      Paths_hw_dump
  hs-source-dirs:       src

executable hw-dump
  import:   base, config
          , bits-extra
          , bytestring
          , generic-lens
          , hw-bits
          , hw-prim
          , lens
          , optparse-applicative
          , vector
  main-is:              Main.hs
  hs-source-dirs:       app
  ghc-options:          -threaded -rtsopts -with-rtsopts=-N
  other-modules:
    App.Commands
    App.Commands.Bits
    App.Commands.Complement
    App.Commands.InterestBits
    App.Commands.Options.Type
    App.Commands.SelectedByBits
    App.Commands.Slice
    App.Commands.Words
    Paths_hw_dump

test-suite hw-dump-test
  import:   base, config
          , QuickCheck
          , bits-extra
          , bytestring
          , hedgehog
          , hspec
          , hw-bits
          , hw-hspec-hedgehog
          , hw-prim
          , vector
  type:                 exitcode-stdio-1.0
  main-is:              Spec.hs
  hs-source-dirs:       test
  ghc-options:          -threaded -rtsopts -with-rtsopts=-N -Wall
  build-tool-depends:   hspec-discover:hspec-discover
  other-modules:
      HaskellWorks.Data.Dump.DumpSpec
      Paths_hw_dump

benchmark bench
  import:   base, config
          , bits-extra
          , bytestring
          , criterion
          , hw-bits
          , hw-prim
          , vector
  type:                 exitcode-stdio-1.0
  main-is:              Main.hs
  other-modules:        Paths_hw_dump
  hs-source-dirs:       bench
  build-depends: