mirror of
https://github.com/typeable/haskell-stack-trace-plugin.git
synced 2024-09-19 16:07:09 +03:00
commit
0f358f0017
@ -1,5 +1,11 @@
|
|||||||
# Revision history for haskell-stack-trace-pugin
|
# Revision history for haskell-stack-trace-pugin
|
||||||
|
|
||||||
|
## 0.1.1.0 -- 2020-01-18
|
||||||
|
|
||||||
|
- Ergonomic improvements [#1](https://github.com/waddlaw/haskell-stack-trace-plugin/pull/1) (@khwarizmii)
|
||||||
|
- Add Integration test
|
||||||
|
- Add GitHub Action
|
||||||
|
|
||||||
## 0.1.0.0 -- 2018-12-07
|
## 0.1.0.0 -- 2018-12-07
|
||||||
|
|
||||||
* First version. Released on an unsuspecting world.
|
- First version. Released on an unsuspecting world.
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
# haskell-stack-trace-plugin
|
# haskell-stack-trace-plugin
|
||||||
|
|
||||||
|
![](https://github.com/waddlaw/haskell-stack-trace-plugin/workflows/cabal/badge.svg)
|
||||||
[![Hackage](https://img.shields.io/hackage/v/haskell-stack-trace-plugin.svg)](https://hackage.haskell.org/package/haskell-stack-trace-plugin)
|
[![Hackage](https://img.shields.io/hackage/v/haskell-stack-trace-plugin.svg)](https://hackage.haskell.org/package/haskell-stack-trace-plugin)
|
||||||
|
|
||||||
This plugin allow implicitly add `HasCallStack` class to every top-level function for all module. Hence, we can to get completely continuous call stack.
|
This plugin allow implicitly add `HasCallStack` class to every top-level function for all module. Hence, we can to get completely continuous call stack.
|
||||||
|
|
||||||
1. (implicitly) Import [GHC.Stack](https://www.stackage.org/haddock/lts-12.21/base-4.11.1.0/GHC-Stack.html) for all modules.
|
1. (implicitly) Import [GHC.Stack](https://hackage.haskell.org/package/base-4.12.0.0/docs/GHC-Stack.html) for all modules.
|
||||||
2. Add [HasCallStack](https://www.stackage.org/haddock/lts-12.21/base-4.11.1.0/GHC-Stack.html#t:HasCallStack) constraint for all top-level functions.
|
2. Add [HasCallStack](https://hackage.haskell.org/package/base-4.12.0.0/docs/GHC-Stack.html#t:HasCallStack) constraint for all top-level functions.
|
||||||
|
|
||||||
Requirement: (8.6 <= on GHC)
|
Requirement: (8.6 <= on GHC)
|
||||||
|
|
||||||
|
@ -1,9 +1,14 @@
|
|||||||
|
cabal-version: 2.4
|
||||||
name: haskell-stack-trace-plugin
|
name: haskell-stack-trace-plugin
|
||||||
version: 0.1.0.1
|
version: 0.1.1.0
|
||||||
synopsis: haskell-stack-trace-plugin
|
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.
|
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
|
homepage: https://github.com/waddlaw/haskell-stack-trace-plugin
|
||||||
bug-reports: https://github.com/waddlaw/haskell-stack-trace-plugin/issues
|
bug-reports:
|
||||||
|
https://github.com/waddlaw/haskell-stack-trace-plugin/issues
|
||||||
|
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Shinya Yamaguchi
|
author: Shinya Yamaguchi
|
||||||
@ -11,9 +16,11 @@ maintainer: ingronze@gmail.com
|
|||||||
copyright: 2018-2020 Shinya Yamaguchi
|
copyright: 2018-2020 Shinya Yamaguchi
|
||||||
category: Compiler Plugin, Development, Debug
|
category: Compiler Plugin, Development, Debug
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
extra-source-files: CHANGELOG.md, Readme.md
|
extra-source-files:
|
||||||
cabal-version: >=1.10
|
CHANGELOG.md
|
||||||
tested-with: GHC == 8.6.5
|
Readme.md
|
||||||
|
|
||||||
|
tested-with: GHC ==8.6.5
|
||||||
|
|
||||||
source-repository head
|
source-repository head
|
||||||
type: git
|
type: git
|
||||||
@ -24,54 +31,48 @@ flag dev
|
|||||||
manual: True
|
manual: True
|
||||||
default: False
|
default: False
|
||||||
|
|
||||||
library
|
common common-opts
|
||||||
hs-source-dirs: src
|
build-depends: base ^>=4.12
|
||||||
build-depends:
|
|
||||||
base >=4.12 && <4.13,
|
|
||||||
ghc>=8.6.2 && <8.6.6
|
|
||||||
|
|
||||||
exposed-modules:
|
|
||||||
StackTrace.Plugin
|
|
||||||
|
|
||||||
if flag(dev)
|
|
||||||
ghc-options: -Wall -Werror -Wcompat
|
|
||||||
-- -Wincomplete-record-updates
|
|
||||||
-Wincomplete-uni-patterns
|
|
||||||
-Wnoncanonical-monad-instances
|
|
||||||
-Wnoncanonical-monadfail-instances
|
|
||||||
-Wno-missing-home-modules
|
|
||||||
else
|
|
||||||
ghc-options: -O2 -Wall
|
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
|
||||||
|
library
|
||||||
|
import: common-opts
|
||||||
|
hs-source-dirs: src
|
||||||
|
build-depends: ghc ^>=8.6
|
||||||
|
exposed-modules: StackTrace.Plugin
|
||||||
|
|
||||||
|
if flag(dev)
|
||||||
|
ghc-options:
|
||||||
|
-Wall -Werror -Wcompat -Wincomplete-uni-patterns
|
||||||
|
-Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
|
||||||
|
-Wno-missing-home-modules
|
||||||
|
|
||||||
|
-- -Wincomplete-record-updates
|
||||||
|
else
|
||||||
|
ghc-options: -O2 -Wall
|
||||||
|
|
||||||
test-suite test
|
test-suite test
|
||||||
|
import: common-opts
|
||||||
main-is: Spec.hs
|
main-is: Spec.hs
|
||||||
hs-source-dirs: test
|
hs-source-dirs: test
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
build-depends:
|
build-depends:
|
||||||
base >=4.12 && <4.13,
|
, bytestring ^>=0.10
|
||||||
bytestring >= 0.10.8 && <0.11,
|
, hspec ^>=2.7
|
||||||
hspec >= 2.7 && <2.8,
|
, typed-process ^>=0.2.6
|
||||||
typed-process >= 0.2.6 && <0.2.9
|
|
||||||
|
|
||||||
build-tool-depends:
|
|
||||||
hspec-discover:hspec-discover >= 2.7 && <2.8
|
|
||||||
|
|
||||||
|
build-tool-depends: hspec-discover:hspec-discover ^>=2.7
|
||||||
other-modules: StackTrace.PluginSpec
|
other-modules: StackTrace.PluginSpec
|
||||||
|
|
||||||
if flag(dev)
|
if flag(dev)
|
||||||
ghc-options: -Wall -Werror
|
ghc-options: -Wall -Werror
|
||||||
|
|
||||||
else
|
else
|
||||||
ghc-options: -O2 -Wall
|
ghc-options: -O2 -Wall
|
||||||
|
|
||||||
default-language: Haskell2010
|
|
||||||
|
|
||||||
executable example
|
executable example
|
||||||
|
import: common-opts
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
hs-source-dirs: example
|
hs-source-dirs: example
|
||||||
default-language: Haskell2010
|
ghc-options: -fplugin=StackTrace.Plugin
|
||||||
ghc-options:
|
build-depends: haskell-stack-trace-plugin
|
||||||
-fplugin=StackTrace.Plugin
|
|
||||||
build-depends:
|
|
||||||
base >=4.12 && <4.13,
|
|
||||||
haskell-stack-trace-plugin
|
|
||||||
|
Loading…
Reference in New Issue
Block a user