Idris2/tests/node/stringcast/StringCast.idr

15 lines
456 B
Idris
Raw Normal View History

2021-09-08 23:16:36 +03:00
main : IO ()
main = do
printLn $ cast {to = Integer} "end"
printLn $ cast {to = Nat} "end"
printLn $ cast {to = Double} "end"
printLn $ cast {to = Bits8} "end"
printLn $ cast {to = Bits16} "end"
printLn $ cast {to = Bits32} "end"
printLn $ cast {to = Bits64} "end"
printLn $ cast {to = Int8} "end"
printLn $ cast {to = Int16} "end"
printLn $ cast {to = Int32} "end"
printLn $ cast {to = Int64} "end"
printLn $ cast {to = Int} "end"