aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/abstract/codec.lux
blob: a872caabb41855a8370af0861daa8d2b0339b8c1 (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
(.module:
  [library
   [lux
    ["$" documentation {"+" [documentation:]}]]]
  [\\library
   ["[0]" /]])

(documentation: (/.Codec medium value)
  "A way to move back-and-forth between a type and an alternative representation for it.")

(documentation: /.composite
  "Codec composition."
  [(: (Codec c a)
      (composite (: (Codec c b)
                    cb_codec)
                 (: (Codec b a)
                    ba_codec)))])

(.def: .public documentation
  (.List $.Module)
  ($.module /._
            ""
            [..Codec
             ..composite]
            []))