Literals.agda 457 B

123456789101112131415161718192021222324252627282930
  1. {-# OPTIONS --universe-polymorphism #-}
  2. module Literals where
  3. open import Common.Nat
  4. open import Common.Float
  5. open import Common.Char
  6. open import Common.String
  7. open import Common.Unit
  8. open import Common.IO
  9. afloat : Float
  10. afloat = 1.23
  11. astring : String
  12. astring = "abc"
  13. achar : Char
  14. achar = 'd'
  15. anat : Nat
  16. anat = 123
  17. main : IO Unit
  18. main =
  19. printFloat afloat ,,
  20. putStr astring ,,
  21. printChar achar ,,
  22. printNat anat ,,
  23. putStrLn ""