mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 12:42:02 +03:00
12 lines
227 B
Idris
12 lines
227 B
Idris
import Language.JSON
|
|
|
|
main : IO ()
|
|
main = do
|
|
printLn $ JObject [
|
|
("a", cast ()),
|
|
("b", cast True),
|
|
("c", cast 1.0),
|
|
("d", cast "Hello, world"),
|
|
("e", cast ["Lorem", "ipsum"])
|
|
]
|