New submission from Ben Franksen <[email protected]>:

1 patch for repository https://darcs.net/screened:

patch f9b000d1d9d285a4ac4dc6a8f87135f1056078a3
Author: Ben Franksen <[email protected]>
Date:   Sat Jun 29 16:54:15 CEST 2024
  * remove unused or trivial exports from Darcs.Util.Printer

----------
files: patch-preview.txt, 
remove-unused-or-trivial-exports-from-darcs_util_printer.dpatch
messages: 24143
nosy: bfrk
status: needs-screening
title: remove unused or trivial exports from Darcs.Util.Printer

__________________________________
Darcs bug tracker <[email protected]>
<https://bugs.darcs.net/patch2439>
__________________________________
[remove unused or trivial exports from Darcs.Util.Printer
Ben Franksen <[email protected]>**20240629145415
 Ignore-this: 8159040c0a1302ea21bf0b032f847e411f565bf659f29716b14f715fccc8bbf074742f3096017f76
] hunk ./src/Darcs/Patch/Summary.hs 33
-    , minus
-    , plus
hunk ./src/Darcs/Patch/Summary.hs 179
-   ad a = plus <> text (show a)
+   ad a = text "+" <> text (show a)
hunk ./src/Darcs/Patch/Summary.hs 181
-   rm a = minus <> text (show a)
+   rm a = text "-" <> text (show a)
hunk ./src/Darcs/UI/Commands/Send.hs 129
-    , quoted, renderPS, sentence, vcat
+    , quoted, renderPS, vcat
hunk ./src/Darcs/UI/Commands/Send.hs 601
-emailBackedUp mf = sentence $ "Email body left in" <+> text mf <> "."
+emailBackedUp mf = "Email body left in" <+> text mf <> "."
hunk ./src/Darcs/UI/Commands/Send.hs 616
-success to cc = sentence $
-    "Successfully sent patch bundle to:" <+> text to <+> copies cc
+success to cc =
+    "Successfully sent patch bundle to:" <+> text to <+> copies cc <> "."
hunk ./src/Darcs/UI/Commands/Send.hs 626
-wroteBundle a = sentence $ "Wrote patch to" <+> text (toFilePath a)
+wroteBundle a = "Wrote patch to" <+> text (toFilePath a) <> "."
hunk ./src/Darcs/UI/Commands/Unrecord.hs 97
-import Darcs.Util.Printer ( Doc, formatWords, putDoc, sentence, text, ($+$), (<+>) )
+import Darcs.Util.Printer ( Doc, formatWords, putDoc, text, ($+$), (<+>) )
hunk ./src/Darcs/UI/Commands/Unrecord.hs 307
-  putInfo opts $ sentence $
+  putInfo opts $ (<> ".") $
hunk ./src/Darcs/Util/Printer.hs 12
-    , minus, newline, plus, space, backslash, lparen, rparen
-    , parens, sentence
hunk ./src/Darcs/Util/Printer.hs 13
+    , newline
hunk ./src/Darcs/Util/Printer.hs 80
--- | A 'Doc' representing a space (\" \")
-space :: Doc
-space = unsafeBoth " "  (BC.singleton ' ')
-
hunk ./src/Darcs/Util/Printer.hs 84
--- | A 'Doc' representing a \"-\"
-minus :: Doc
-minus = unsafeBoth "-"  (BC.singleton '-')
-
--- | A 'Doc' representing a \"+\"
-plus :: Doc
-plus = unsafeBoth "+"  (BC.singleton '+')
-
--- | A 'Doc' representing a \"\\\"
-backslash :: Doc
-backslash = unsafeBoth "\\" (BC.singleton '\\')
-
--- | A 'Doc' that represents @\"(\"@
-lparen :: Doc
-lparen = unsafeBoth  "(" (BC.singleton '(')
-
--- | A 'Doc' that represents @\")\"@
-rparen :: Doc
-rparen = unsafeBoth ")" (BC.singleton ')')
-
--- | prop> parens d = lparen <> d <> rparen
-parens :: Doc -> Doc
-parens d = lparen <> d <> rparen
-
--- | Turn a 'Doc' into a sentence. This appends a ".".
-sentence :: Doc -> Doc
-sentence = (<> text ".")
-

Attachment: remove-unused-or-trivial-exports-from-darcs_util_printer.dpatch
Description: application/darcs-patch

_______________________________________________
darcs-devel mailing list
[email protected]
https://lists.darcs.net/mailman/listinfo/darcs-devel

Reply via email to