aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/php/primitive.jvm.lux
blob: 061833c702f5d80da3e1428f10288cb08fdcdc80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(.module:
  lux
  (lux [macro "meta/" Monad<Meta>])
  (luxc (lang (host ["_" php #+ Computation]))))

(def: #export translate-bit
  (-> Bit (Meta Computation))
  (|>> _.bool meta/wrap))

(def: #export translate-int
  (-> Int (Meta Computation))
  (|>> _.int meta/wrap))

(def: #export translate-frac
  (-> Frac (Meta Computation))
  (|>> _.float meta/wrap))

(def: #export translate-text
  (-> Text (Meta Computation))
  (|>> _.string meta/wrap))