Skip to content

Commit ddc6a4a

Browse files
chamecobmcutler
authored andcommitted
Fix bug in counter selection (#51)
1 parent 1f4b41e commit ddc6a4a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lichen.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: lichen
2-
version: 0.2.6
2+
version: 0.2.7
33
synopsis: Plagiarism Detection and Other Static Analysis
44
description: Please see README.md
55
homepage: https://github.com/Submitty/AnalysisTools
@@ -65,7 +65,7 @@ library
6565
executable plagiarism
6666
hs-source-dirs: app/plagiarism
6767
main-is: Main.hs
68-
ghc-options: -O2 -Wall
68+
ghc-options: -O2 -Wall -threaded -rtsopts -with-rtsopts=-N
6969
build-depends: base
7070
, lichen
7171
default-language: Haskell2010
@@ -81,7 +81,7 @@ executable count
8181
executable diagnostics
8282
hs-source-dirs: app/diagnostics
8383
main-is: Main.hs
84-
ghc-options: -O2 -Wall
84+
ghc-options: -O2 -Wall -threaded -rtsopts -with-rtsopts=-N
8585
build-depends: base
8686
, lichen
8787
default-language: Haskell2010

src/Lichen/Count/Counters.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,7 @@ counterChoice d Nothing = d
5252
counterChoice _ (Just "token") = counterToken
5353
counterChoice _ (Just "node") = counterNode
5454
counterChoice _ (Just "call") = counterCall
55+
counterChoice _ (Just "func") = counterCall
56+
counterChoice _ (Just "function") = counterCall
5557
counterChoice _ (Just "depth") = counterDepth
5658
counterChoice _ _ = counterDummy

0 commit comments

Comments
 (0)