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

79 lines
2.1 KiB
Plaintext
Raw Normal View History

2020-01-18 07:19:00 +03:00
cabal-version: 2.4
name: haskell-stack-trace-plugin
2020-01-18 07:29:39 +03:00
version: 0.1.1.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
maintainer: ingronze@gmail.com
copyright: 2018-2020 Shinya Yamaguchi
category: Compiler Plugin, Development, Debug
build-type: Simple
extra-source-files:
CHANGELOG.md
Readme.md
2020-01-18 13:36:01 +03:00
tested-with: GHC ==8.6.5 || ==8.8.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
2020-01-18 13:36:01 +03:00
build-depends: base >=4.12 && <4.14
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
2020-01-18 13:36:01 +03:00
build-depends: ghc ^>=8.6 || ^>=8.8
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
-Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
-Wno-missing-home-modules
-- -Wincomplete-record-updates
2020-01-18 05:57:33 +03:00
else
2020-01-18 07:19:00 +03:00
ghc-options: -O2 -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:
2020-01-18 07:19:00 +03:00
, bytestring ^>=0.10
, hspec ^>=2.7
, typed-process ^>=0.2.6
2020-01-18 06:45:40 +03:00
2020-01-18 07:19:00 +03:00
build-tool-depends: hspec-discover:hspec-discover ^>=2.7
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 07:19:00 +03:00
ghc-options: -O2 -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
2020-01-18 07:19:00 +03:00
ghc-options: -fplugin=StackTrace.Plugin
build-depends: haskell-stack-trace-plugin