@@ -7,6 +7,7 @@
77module Ormolu.Printer.Meat.Declaration.Signature
88 ( p_sigDecl
99 , p_sigDecl'
10+ , p_typeAscription
1011 )
1112where
1213
@@ -34,13 +35,19 @@ p_typeSig
3435 :: [Located RdrName] -- ^ Names (before @::@)
3536 -> LHsSigWcType GhcPs -- ^ Type
3637 -> R ()
37−p_typeSig names HsWC {..} = do
38+p_typeSig names hswc = do
3839 spaceSep p_rdrName names
40+ p_typeAscription hswc
41+
42+p_typeAscription
43+ :: LHsSigWcType GhcPs
44+ -> R ()
45+p_typeAscription HsWC {..} = do
3946 breakpoint
4047 inci $ do
4148 txt ":: "
4249 located (hsib_body hswc_body) p_hsType
43−p_typeSig _ (XHsWildCardBndrs NoExt) = notImplemented "XHsWildCardBndrs"
50+p_typeAscription (XHsWildCardBndrs NoExt) = notImplemented "XHsWildCardBndrs"
4451
4552p_classOpSig
4653 :: Bool -- ^ Whether this is a \"default\" signature