git.iko.soy/typeable/haskell-stack-trace-plugin
on master help sign in
Merge pull request #4 from waddlaw/tweak3

Tweak3

commit0f358f00174953991b408653f69fdb9dcae52959 authorShinya Yamaguchi <waddlaw@users.noreply.github.com> dateSat 18 Jan 2020, 13:31 (7 years ago) parent410af8b8206cd3
3 files changed+65−57
CHANGELOG.md+7−1 Readme.md+4−3 haskell-stack-trace-plugin.cabal+54−53
CHANGELOG.md+7−1
@@ -1,5 +1,11 @@
11# Revision history for haskell-stack-trace-pugin
22
3+## 0.1.1.0 -- 2020-01-18
4+
5+- Ergonomic improvements [#1](https://github.com/waddlaw/haskell-stack-trace-plugin/pull/1) (@khwarizmii)
6+- Add Integration test
7+- Add GitHub Action
8+
39## 0.1.0.0 -- 2018-12-07
410
5−* First version. Released on an unsuspecting world.
11+- First version. Released on an unsuspecting world.
Readme.md+4−3
@@ -1,11 +1,12 @@
11# haskell-stack-trace-plugin
22
3+![](https://github.com/waddlaw/haskell-stack-trace-plugin/workflows/cabal/badge.svg)
34[![Hackage](https://img.shields.io/hackage/v/haskell-stack-trace-plugin.svg)](https://hackage.haskell.org/package/haskell-stack-trace-plugin)
45
56This plugin allow implicitly add `HasCallStack` class to every top-level function for all module. Hence, we can to get completely continuous call stack.
67
7−1. (implicitly) Import [GHC.Stack](https://www.stackage.org/haddock/lts-12.21/base-4.11.1.0/GHC-Stack.html) for all modules.
8−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.
8+1. (implicitly) Import [GHC.Stack](https://hackage.haskell.org/package/base-4.12.0.0/docs/GHC-Stack.html) for all modules.
9+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.
910
1011Requirement: (8.6 <= on GHC)
1112
@@ -102,4 +103,4 @@ CallStack (from HasCallStack):
102103 main, called at example/Main.hs:6:1 in main:Main
103104```
104105
105−Great!!!
106+Great!!!
haskell-stack-trace-plugin.cabal+54−53
@@ -1,77 +1,78 @@
1−name: haskell-stack-trace-plugin
2−version: 0.1.0.1
3−synopsis: haskell-stack-trace-plugin
4−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.
5−homepage: https://github.com/waddlaw/haskell-stack-trace-plugin
6−bug-reports: https://github.com/waddlaw/haskell-stack-trace-plugin/issues
7−license: MIT
8−license-file: LICENSE
9−author: Shinya Yamaguchi
10−maintainer: ingronze@gmail.com
11−copyright: 2018-2020 Shinya Yamaguchi
12−category: Compiler Plugin, Development, Debug
13−build-type: Simple
14−extra-source-files: CHANGELOG.md, Readme.md
15−cabal-version: >=1.10
16−tested-with: GHC == 8.6.5
1+cabal-version: 2.4
2+name: haskell-stack-trace-plugin
3+version: 0.1.1.0
4+synopsis: haskell-stack-trace-plugin
5+description:
6+ This plugin allow implicitly add HasCallStack class to every top-level function for all module. Hence, we can to get completely continuous call stack.
7+
8+homepage: https://github.com/waddlaw/haskell-stack-trace-plugin
9+bug-reports:
10+ https://github.com/waddlaw/haskell-stack-trace-plugin/issues
11+
12+license: MIT
13+license-file: LICENSE
14+author: Shinya Yamaguchi
15+maintainer: ingronze@gmail.com
16+copyright: 2018-2020 Shinya Yamaguchi
17+category: Compiler Plugin, Development, Debug
18+build-type: Simple
19+extra-source-files:
20+ CHANGELOG.md
21+ Readme.md
22+
23+tested-with: GHC ==8.6.5
1724
1825source-repository head
1926 type: git
2027 location: git://github.com/waddlaw/haskell-stack-trace-plugin
2128
2229flag dev
23− description: Turn on development settings.
24− manual: True
25− default: False
30+ description: Turn on development settings.
31+ manual: True
32+ default: False
2633
27−library
28− hs-source-dirs: src
29− build-depends:
30− base >=4.12 && <4.13,
31− ghc>=8.6.2 && <8.6.6
34+common common-opts
35+ build-depends: base ^>=4.12
36+ default-language: Haskell2010
3237
33− exposed-modules:
34− StackTrace.Plugin
38+library
39+ import: common-opts
40+ hs-source-dirs: src
41+ build-depends: ghc ^>=8.6
42+ exposed-modules: StackTrace.Plugin
3543
3644 if flag(dev)
37− ghc-options: -Wall -Werror -Wcompat
38− -- -Wincomplete-record-updates
39− -Wincomplete-uni-patterns
40− -Wnoncanonical-monad-instances
41− -Wnoncanonical-monadfail-instances
42− -Wno-missing-home-modules
45+ ghc-options:
46+ -Wall -Werror -Wcompat -Wincomplete-uni-patterns
47+ -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances
48+ -Wno-missing-home-modules
49+
50+ -- -Wincomplete-record-updates
4351 else
44− ghc-options: -O2 -Wall
45− default-language: Haskell2010
52+ ghc-options: -O2 -Wall
4653
4754test-suite test
55+ import: common-opts
4856 main-is: Spec.hs
4957 hs-source-dirs: test
5058 type: exitcode-stdio-1.0
5159 build-depends:
52− base >=4.12 && <4.13,
53− bytestring >= 0.10.8 && <0.11,
54− hspec >= 2.7 && <2.8,
55− typed-process >= 0.2.6 && <0.2.9
56−
57− build-tool-depends:
58− hspec-discover:hspec-discover >= 2.7 && <2.8
60+ , bytestring ^>=0.10
61+ , hspec ^>=2.7
62+ , typed-process ^>=0.2.6
5963
60− other-modules: StackTrace.PluginSpec
64+ build-tool-depends: hspec-discover:hspec-discover ^>=2.7
65+ other-modules: StackTrace.PluginSpec
6166
6267 if flag(dev)
63− ghc-options: -Wall -Werror
64− else
65− ghc-options: -O2 -Wall
68+ ghc-options: -Wall -Werror
6669
67− default-language: Haskell2010
70+ else
71+ ghc-options: -O2 -Wall
6872
6973executable example
70− main-is: Main.hs
74+ import: common-opts
75+ main-is: Main.hs
7176 hs-source-dirs: example
72− default-language: Haskell2010
73− ghc-options:
74− -fplugin=StackTrace.Plugin
75− build-depends:
76− base >=4.12 && <4.13,
77− haskell-stack-trace-plugin
77+ ghc-options: -fplugin=StackTrace.Plugin
78+ build-depends: haskell-stack-trace-plugin