haskell-stack-trace-plugin/haskell-stack-trace-plugin.cabal

77 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

2020-01-18 07:19:00 +03:00
cabal-version: 2.4
name: haskell-stack-trace-plugin
2021-05-25 05:24:13 +03:00
version: 0.1.3.0
2020-01-18 07:19:00 +03:00
synopsis: haskell-stack-trace-plugin
description:
This plugin allow implicitly add HasCallStack class to every top-level function for all module. Hence, we can to get completely continuous call stack.
homepage: https://github.com/waddlaw/haskell-stack-trace-plugin
bug-reports:
https://github.com/waddlaw/haskell-stack-trace-plugin/issues
license: MIT
license-file: LICENSE
author: Shinya Yamaguchi
2021-05-21 09:17:47 +03:00
maintainer: a@wado.dev
copyright: 2018-2021 Shinya Yamaguchi
2020-01-18 07:19:00 +03:00
category: Compiler Plugin, Development, Debug
build-type: Simple
extra-source-files:
CHANGELOG.md
Readme.md
2021-05-21 09:42:58 +03:00
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1
2018-12-07 09:13:06 +03:00
source-repository head
type: git
location: git://github.com/waddlaw/haskell-stack-trace-plugin
2018-12-07 09:07:07 +03:00
2020-01-18 05:57:33 +03:00
flag dev
2020-01-18 07:19:00 +03:00
description: Turn on development settings.
manual: True
default: False
2020-01-18 05:57:33 +03:00
2020-01-18 07:18:14 +03:00
common common-opts
2023-07-21 18:32:17 +03:00
build-depends: base >=4.12 && <4.18
2020-01-18 07:19:00 +03:00
default-language: Haskell2010
2020-01-18 07:18:14 +03:00
2018-12-07 09:07:07 +03:00
library
2020-01-18 07:19:00 +03:00
import: common-opts
hs-source-dirs: src
build-depends: ghc ^>=8.6 || ^>=8.8 || ^>=8.10 || ^>=9.0 || ^>=9.2 || ^>=9.4
2020-01-18 07:19:00 +03:00
exposed-modules: StackTrace.Plugin
2018-12-07 09:07:07 +03:00
2020-01-18 05:57:33 +03:00
if flag(dev)
2020-01-18 07:19:00 +03:00
ghc-options:
-Wall -Werror -Wcompat -Wincomplete-uni-patterns
2021-05-21 09:17:47 +03:00
-Wnoncanonical-monad-instances -Wno-missing-home-modules
2021-05-21 09:42:58 +03:00
2020-01-18 05:57:33 +03:00
else
2020-01-18 13:41:01 +03:00
ghc-options: -Wall
2018-12-07 09:07:07 +03:00
2020-01-18 06:45:40 +03:00
test-suite test
2020-01-18 07:19:00 +03:00
import: common-opts
2020-01-18 06:45:40 +03:00
main-is: Spec.hs
hs-source-dirs: test
type: exitcode-stdio-1.0
build-depends:
2021-05-21 09:17:47 +03:00
, bytestring >=0.10 && <0.12
, hspec ^>=2.8
, typed-process ^>=0.2
2020-01-18 06:45:40 +03:00
2021-05-21 09:17:47 +03:00
build-tool-depends: hspec-discover:hspec-discover ^>=2.8
2020-01-18 07:19:00 +03:00
other-modules: StackTrace.PluginSpec
2020-01-18 06:45:40 +03:00
if flag(dev)
2020-01-18 07:19:00 +03:00
ghc-options: -Wall -Werror
2020-01-18 06:45:40 +03:00
else
2020-01-18 13:41:01 +03:00
ghc-options: -Wall
2020-01-18 06:45:40 +03:00
2018-12-07 09:07:07 +03:00
executable example
2020-01-18 07:19:00 +03:00
import: common-opts
main-is: Main.hs
2018-12-07 09:07:07 +03:00
hs-source-dirs: example
ghc-options: -fplugin=StackTrace.Plugin -Wredundant-constraints
2020-01-18 07:19:00 +03:00
build-depends: haskell-stack-trace-plugin