Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2017
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. *Text\PrettyPrint\WL\Core *Text\PrettyPrint\WL\Combinators>  fold (|//|) $ map text $ words "this is a long sentence with a lot of words that I can use for testing the performance of the prettier printer implementation. I need a few more words to prove my point, though."
  2. Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Cat (Text 4
  3.  
  4.                       "this")
  5.  
  6.                 (Cat (Union Empty
  7.  
  8.                             (Line True))
  9.  
  10.                      (Text 2
  11.  
  12.                            "is")))
  13.  
  14.            (Cat (Union Empty
  15.  
  16.                        (Line True))
  17.  
  18.                 (Text 1
  19.  
  20.                       "a")))
  21.  
  22.       (Cat (Union Empty
  23.  
  24.                   (Line True))
  25.  
  26.            (Text 4
  27.  
  28.                  "long")))
  29.  
  30.  (Cat (Union Empty
  31.  
  32.              (Line True))
  33.  
  34.       (Text 8
  35.  
  36.             "sentence")))
  37.                                                                                                                                                 (Cat (Union Empty
  38.  
  39.         (Line True))
  40.  
  41.  (Text 4
  42.  
  43.        "with")))
  44.                                                                                                                                            (Cat (Union Empty
  45.  
  46.    (Line True))
  47.                                                                                                                                                 (Text 1
  48.  
  49.   "a")))
  50.                                                                                                                                       (Cat (Union Empty
  51.                                                                                                                                                   (Line True))
  52.                                                                                                                                            (Text 3
  53.                                                                                                                                                  "lot")))
  54.                                                                                                                                  (Cat (Union Empty
  55.                                                                                                                                              (Line True))
  56.                                                                                                                                       (Text 2
  57.                                                                                                                                             "of")))
  58.                                                                                                                             (Cat (Union Empty
  59.                                                                                                                                         (Line True))
  60.  
  61.                                                                                                                                  (Text 5 "words")))
  62.                                                                                                                        (Cat (Union Empty
  63.                                                                                                                                    (Line True))
  64.                                                                                                                             (Text 4 "that")))
  65.                                                                                                                   (Cat (Union Empty (Line True))
  66.                                                                                                                        (Text 1 "I")))
  67.                                                                                                              (Cat (Union Empty (Line True))
  68.                                                                                                                   (Text 3 "can")))
  69.                                                                                                         (Cat (Union Empty (Line True))
  70.                                                                                                              (Text 3 "use")))
  71.                                                                                                    (Cat (Union Empty (Line True)) (Text 3 "for")))
  72.                                                                                               (Cat (Union Empty (Line True)) (Text 7 "testing")))
  73.                                                                                          (Cat (Union Empty (Line True)) (Text 3 "the")))
  74.                                                                                     (Cat (Union Empty (Line True)) (Text 11 "performance")))
  75.                                                                                (Cat (Union Empty (Line True)) (Text 2 "of")))
  76.                                                                           (Cat (Union Empty (Line True)) (Text 3 "the")))
  77.                                                                      (Cat (Union Empty (Line True)) (Text 8 "prettier")))
  78.                                                                 (Cat (Union Empty (Line True)) (Text 7 "printer")))
  79.                                                            (Cat (Union Empty (Line True)) (Text 15 "implementation.")))
  80.                                                       (Cat (Union Empty (Line True)) (Text 1 "I")))
  81.                                                  (Cat (Union Empty (Line True)) (Text 4 "need")))
  82.                                             (Cat (Union Empty (Line True)) (Text 1 "a")))
  83.                                        (Cat (Union Empty (Line True)) (Text 3 "few")))
  84.                                   (Cat (Union Empty (Line True)) (Text 4 "more")))
  85.                              (Cat (Union Empty (Line True)) (Text 5 "words")))
  86.                         (Cat (Union Empty (Line True)) (Text 2 "to")))
  87.                    (Cat (Union Empty (Line True)) (Text 5 "prove")))
  88.               (Cat (Union Empty (Line True)) (Text 2 "my")))
  89.          (Cat (Union Empty (Line True)) (Text 6 "point,")))
  90.     (Cat (Union Empty (Line True)) (Text 7 "though.")) : Doc
  91. *Text\PrettyPrint\WL\Core *Text\PrettyPrint\WL\Combinators>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement