Skip to content

Commit 9aea5e5

Browse files
local
1 parent 40e7488 commit 9aea5e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sheriff/src/Sheriff/Plugin.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ getFnNameWithAllArgs :: LHsExpr GhcTc -> Maybe (Located Var, [LHsExpr GhcTc])
10331033
getFnNameWithAllArgs expr = case expr of
10341034
L loc (HsVar _ v) ->
10351035
trace ("getFnNameWithAllArgs: Detected HsVar with name = " <> showS v) $
1036-
Just (getLocated v loc, [])
1036+
Nothing
10371037

10381038
L _ (HsConLikeOut _ cl) ->
10391039
trace "getFnNameWithAllArgs: Detected HsConLikeOut" $
@@ -1045,7 +1045,7 @@ getFnNameWithAllArgs expr = case expr of
10451045

10461046
L _ (HsApp _ (L loc (HsVar _ v)) funr) ->
10471047
trace ("getFnNameWithAllArgs: Detected HsApp with HsVar function name = " <> showS v) $
1048-
Just (getLocated v loc, [funr])
1048+
Nothing
10491049

10501050
L _ (HsPar _ expr) ->
10511051
trace "getFnNameWithAllArgs: Detected HsPar" $

0 commit comments

Comments
 (0)