File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
lib/Language/Haskell/Stylish/Step Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -59,29 +59,29 @@ data SignatureDecl = MkSignatureDecl
5959 }
6060
6161formatSignatureDecl :: Config -> Module -> Located SignatureDecl -> ChangeLine
62- formatSignatureDecl cfg@ Config {.. } m ldecl
62+ formatSignatureDecl cfg@ Config {.. } m ldecl@ ( L _ decl)
6363 | fits declLength cMaxColumns = noop block
64- | otherwise = change block (const (printDecl cfg m ldecl ))
64+ | otherwise = change block (const (printDecl cfg m decl ))
6565
6666 where
6767 block = Block (getStartLineUnsafe ldecl) (getEndLineUnsafe ldecl)
6868 declLength = getEndColumnUnsafe ldecl
6969
70- printDecl :: Config -> Module -> Located SignatureDecl -> Lines
71- printDecl Config {.. } m ( L _declPos decl) = runPrinter_ printerConfig [] m do
70+ printDecl :: Config -> Module -> SignatureDecl -> Lines
71+ printDecl Config {.. } m MkSignatureDecl { .. } = runPrinter_ printerConfig [] m do
7272 printFirstLine
7373 printSecondLine
7474 printRemainingLines
7575 where
7676
7777 printFirstLine =
78- ( putRdrName $ sigName decl) >> space >> putText " ::" >> newline
78+ putRdrName sigName >> space >> putText " ::" >> newline
7979
8080 printSecondLine =
81- spaces 5 >> (putRdrName $ head $ sigParameters decl ) >> newline
81+ spaces 5 >> (putRdrName $ head sigParameters) >> newline
8282
8383 printRemainingLines =
84- traverse (\ para -> spaces 2 >> putText " ->" >> space >> (putRdrName para) >> newline) (tail $ sigParameters decl )
84+ traverse (\ para -> spaces 2 >> putText " ->" >> space >> (putRdrName para) >> newline) (tail $ sigParameters)
8585
8686 printerConfig = PrinterConfig
8787 { columns = case cMaxColumns of
You can’t perform that action at this time.
0 commit comments