aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/control/remember.lux
blob: 3d40127a4d4bf68a09cfcd9ccdee14c37cfff6c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
(.require
 [library
  [lux (.except)
   ["$" documentation]
   [data
    [text (.only \n)
     ["%" \\format (.only format)]]]
   [macro
    ["[0]" template]]]]
 [\\library
  ["[0]" /]])

(.def .public documentation
  (.List $.Module)
  ($.module /._
            ""
            [($.default /.must_remember)

             ($.documentation /.remember
               (format "A message with an expiration date."
                       \n "Can have an optional piece of code to focus on.")
               [(remember "2022-04-01"
                  "Do this, that and the other.")]
               [(remember "2022-04-01"
                  "Improve the performace."
                  (some (complicated (computation 123))))])

             ($.documentation /.to_do
               (format "A TODO message with an expiration date."
                       \n "Can have an optional piece of code to focus on.")
               [(to_do "2022-04-01"
                  "Do this, that and the other.")]
               [(to_do "2022-04-01"
                  "Improve the performace."
                  (some (complicated (computation 123))))])

             ($.documentation /.fix_me
               (format "A FIXME message with an expiration date."
                       \n "Can have an optional piece of code to focus on.")
               [(fix_me "2022-04-01"
                  "Do this, that and the other.")]
               [(fix_me "2022-04-01"
                  "Improve the performace."
                  (some (complicated (computation 123))))])]
            []))