aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/lux/type/poly/functor.lux
blob: d717d1548b3e3c708d29f329b9f683bab49079a6 (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
(.module:
  [library
   [lux "*"
    [abstract
     [monad {"+" [do]}]
     [functor
      [\\poly
       ["." /]]]]
    ["r" math/random {"+" [Random]}]
    ["_" test {"+" [Test]}]
    [control
     ["." state]]
    [data
     ["." identity]]
    [type
     [poly {"+" [derived:]}]]]])

(derived: maybe_functor (/.functor .Maybe))
(derived: list_functor (/.functor .List))
(derived: state_functor (/.functor state.State))
(derived: identity_functor (/.functor identity.Identity))

(def: .public test
  Test
  (<| (_.covering /._)
      (_.cover [/.functor]
               true)))