aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/php/primitive.jvm.lux
blob: 6fcd675ce2397a17797fe9c955a28e7ee4441467 (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-bool
  (-> Bool (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))