packages feed

hs-opentelemetry-instrumentation-auto-0.1.0.2: hs-opentelemetry-instrumentation-auto.cabal

cabal-version:      3.0
name:               hs-opentelemetry-instrumentation-auto
version:            0.1.0.2
synopsis:           Plugin for instrumenting an application
description:        A GHC plugin that auto-instruments an application for emitting open telementry tracing.
license:            BSD-3-Clause
license-file:       LICENSE
author:             Aaron Allen
maintainer:         aaronallen8455@gmail.com
-- copyright:
category:           Development
build-type:         Simple
extra-doc-files:
  CHANGELOG.md
  README.md
extra-source-files: test-config.toml
tested-with:
  GHC == 9.8.2
  GHC == 9.4.8
  GHC == 9.6.2
  GHC == 9.10.1
bug-reports: https://github.com/aaronallen8455/opentelemetry-auto/issues
source-repository head
    type: git
    location: https://github.com/aaronallen8455/opentelemetry-auto

common warnings
    ghc-options: -Wall

library
    import:           warnings
    exposed-modules:
      AutoInstrument
      AutoInstrument.Internal.Plugin
      AutoInstrument.Internal.Plugin.Parser
      AutoInstrument.Internal.Config
      AutoInstrument.Internal.GhcFacade
      AutoInstrument.Internal.Types
    -- other-modules:
    -- other-extensions:
    build-depends:
      base >=4.17.0.0 && <4.22.0.0,
      ghc >=9.4.0 && <9.11.0,
      bytestring ^>= 0.11 || ^>= 0.12,
      directory ^>= 1.3,
      containers ^>= 0.6 || ^>= 0.7,
      unliftio ^>= 0.2,
      hs-opentelemetry-api ^>= 0.0.3 || ^>= 0.1 || ^>= 0.2,
      text ^>= 2.0 || ^>= 2.1,
      toml-parser >= 2.0.0.0 && < 3.0.0.0,
      parsec ^>= 3.1,
      time ^>= 1.12
    hs-source-dirs:   src
    default-language: GHC2021

test-suite auto-instrument-test
    import:           warnings
    default-language: GHC2021
    -- other-modules:
    -- other-extensions:
    type:             exitcode-stdio-1.0
    hs-source-dirs:   test
    main-is:          Main.hs
    build-depends:
      base >=4.17.0.0 && <4.22.0.0,
      unordered-containers,
      hs-opentelemetry-instrumentation-auto,
      hs-opentelemetry-exporter-in-memory,
      hs-opentelemetry-api,
      hs-opentelemetry-sdk,
      tasty-hunit,
      tasty,
      unliftio,
      text
    ghc-options:
      -threaded
      -fplugin AutoInstrument
      -fplugin-opt AutoInstrument:test-config.toml