packages feed

melf-1.0.0: melf.cabal

cabal-version: 1.18

-- This file has been generated from package.yaml by hpack version 0.34.4.
--
-- see: https://github.com/sol/hpack

name:           melf
version:        1.0.0
synopsis:       An Elf parser
description:    Parser for ELF object format
category:       Data
homepage:       https://github.com/aleksey-makarov/melf
bug-reports:    https://github.com/aleksey-makarov/melf/issues
author:         Aleksey Makarov
maintainer:     aleksey.makarov@gmail.com
copyright:      Aleksey Makarov
license:        BSD3
license-file:   LICENSE
build-type:     Simple
tested-with:
    GHC == 8.10.4
extra-doc-files:
    ChangeLog.md
    README.md

source-repository head
  type: git
  location: https://github.com/aleksey-makarov/melf

library
  exposed-modules:
      Data.Endian
      Data.Elf
      Data.Elf.Constants
      Data.Elf.Headers
      Data.Elf.PrettyPrint
      Control.Exception.ChainedException
  other-modules:
      Data.Elf.Constants.TH
      Data.Elf.Constants.Data
      Data.Internal.Elf
      Data.Interval
      Data.BList
  hs-source-dirs:
      src
  ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wno-redundant-constraints
  build-depends:
      base >=4.6 && <5.0
    , binary >=0.8.8 && <0.9
    , bytestring >=0.10.12 && <0.11
    , exceptions >=0.10.4 && <0.11
    , mtl >=2.2.2 && <2.3
    , prettyprinter >=1.7.0 && <1.8
    , singletons >=2.7 && <3
    , template-haskell ==2.16.*
  default-language: Haskell2010

executable hobjdump
  main-is: hObjDump.hs
  other-modules:
      Paths_melf
  hs-source-dirs:
      app
  ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wno-redundant-constraints -fno-warn-unused-do-bind -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.6 && <5.0
    , binary
    , bytestring
    , melf
    , optparse-applicative >=0.16.1 && <0.17
    , prettyprinter
  default-language: Haskell2010

executable hobjlayout
  main-is: hObjLayout.hs
  other-modules:
      Paths_melf
  hs-source-dirs:
      app
  ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wno-redundant-constraints -fno-warn-unused-do-bind -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.6 && <5.0
    , binary
    , bytestring
    , exceptions
    , melf
    , prettyprinter
  default-language: Haskell2010

test-suite examples
  type: exitcode-stdio-1.0
  main-is: Examples.hs
  other-modules:
      AsmAarch64
      ForwardLabel
      HelloWorld
      MkExe
      MkObj
      Paths_melf
  hs-source-dirs:
      examples
  ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wno-redundant-constraints
  build-depends:
      base >=4.6 && <5.0
    , bytestring
    , containers >=0.6.2.1 && <0.7
    , exceptions
    , filepath
    , melf
    , mtl
    , singletons
    , tasty
    , tasty-golden
    , tasty-hunit
    , unix >=2.7.2.2 && <2.8
  default-language: Haskell2010

test-suite exceptions
  type: exitcode-stdio-1.0
  main-is: Exceptions.hs
  other-modules:
      Paths_melf
  hs-source-dirs:
      tests/exceptions
  ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wno-redundant-constraints
  build-depends:
      base >=4.6 && <5.0
    , exceptions
    , melf
    , tasty
    , tasty-hunit
  default-language: Haskell2010

test-suite golden
  type: exitcode-stdio-1.0
  main-is: Golden.hs
  other-modules:
      Paths_melf
  hs-source-dirs:
      tests
  ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wno-redundant-constraints
  build-depends:
      base >=4.6 && <5.0
    , binary
    , bytestring
    , directory >=1.3.6 && <1.4
    , exceptions
    , filepath >=1.4.2.1 && <1.5
    , melf
    , prettyprinter
    , singletons
    , tasty >=1.4.1 && <1.5
    , tasty-golden >=2.3.4 && <2.4
    , tasty-hunit >=0.10.0.3 && <0.11
  default-language: Haskell2010