aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Interface/Create.hs
diff options
context:
space:
mode:
authorCale Gibbard <cgibbard@gmail.com>2020-07-30 14:00:19 -0400
committerRichard Eisenberg <rae@richarde.dev>2020-11-25 23:18:35 -0500
commitacf235d607879eb9542127eb0ddb42a250b5b850 (patch)
treeab41b4f5840cd6a7631e4f2b2c94da010e88e614 /haddock-api/src/Haddock/Interface/Create.hs
parent8d260690b53f2fb6b54ba78bd13d1400d9ebd395 (diff)
Add type arguments to PrefixCon
Diffstat (limited to 'haddock-api/src/Haddock/Interface/Create.hs')
-rw-r--r--haddock-api/src/Haddock/Interface/Create.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/haddock-api/src/Haddock/Interface/Create.hs b/haddock-api/src/Haddock/Interface/Create.hs
index a0e56f07..8bc8d306 100644
--- a/haddock-api/src/Haddock/Interface/Create.hs
+++ b/haddock-api/src/Haddock/Interface/Create.hs
@@ -948,7 +948,7 @@ extractPatternSyn nm t tvs cons =
let args =
case con of
ConDeclH98 { con_args = con_args' } -> case con_args' of
- PrefixCon args' -> map hsScaledThing args'
+ PrefixCon _ args' -> map hsScaledThing args'
RecCon (L _ fields) -> cd_fld_type . unLoc <$> fields
InfixCon arg1 arg2 -> map hsScaledThing [arg1, arg2]
ConDeclGADT { con_g_args = con_args' } -> case con_args' of