TestNat.agda 486 B

12345678910111213141516171819202122232425
  1. module TestNat where
  2. import PreludeNatType
  3. import AlonzoPrelude
  4. import PreludeNat
  5. import PreludeString
  6. import PreludeShow
  7. import RTP
  8. import PreludeList
  9. open AlonzoPrelude
  10. open PreludeShow
  11. open PreludeNatType
  12. open PreludeString
  13. open PreludeNat
  14. open PreludeList hiding(_++_)
  15. one = suc zero
  16. two = suc one
  17. lines : (List String) -> String
  18. lines [] = ""
  19. lines (l :: []) = l
  20. lines (l :: ls) = l ++ "\n" ++ (lines ls)
  21. mainS = (id ○ lines) ((showNat 42) :: (showBool (2007 == 2007)) :: [])