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

name:           cppfilt
version:        0.1.0.0
synopsis:       Bindings for C++ demangling routines
description:    Please see the README on Github at <https://github.com/0xd34df00d/cppfilt#readme>
category:       System
homepage:       https://github.com/0xd34df00d/cppfilt#readme
bug-reports:    https://github.com/0xd34df00d/cppfilt/issues
author:         Georg Rudoy
maintainer:     0xd34df00d@gmail.com
copyright:      2018 Georg Rudoy
license:        BSD3
license-file:   LICENSE
build-type:     Simple
cabal-version:  >= 1.10

extra-source-files:
    ChangeLog.md
    README.md

source-repository head
  type: git
  location: https://github.com/0xd34df00d/cppfilt

flag use-libcpp
  description: Use libc++ for demangling (if you're building your C++ code with clang) instead of libstdc++
  manual: True
  default: False

library
  hs-source-dirs:
      src
  build-depends:
      base >=4.7 && <5
    , bytestring
  if flag(use-libcpp) || os(darwin)
    extra-libraries:
        c++
  else
    extra-libraries:
        stdc++
  exposed-modules:
      Data.CStringRepresentable
      System.Demangle
      System.Demangle.Pure
  other-modules:
      Paths_cppfilt
  default-language: Haskell2010

test-suite cppfilt-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  hs-source-dirs:
      test
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.7 && <5
    , bytestring
    , cppfilt
    , hspec
  other-modules:
      Paths_cppfilt
  default-language: Haskell2010

benchmark cppfilt-benchmarks
  type: exitcode-stdio-1.0
  main-is: Bench.hs
  hs-source-dirs:
      bench
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.7 && <5
    , bytestring
    , cppfilt
    , criterion
  other-modules:
      Paths_cppfilt
  default-language: Haskell2010