shithub: MicroHs

ref: 2f3ccd459aedf6d03eaee5f77d982cbab4c23396
dir: /tests/Enum.hs/

View raw version
module Enum(main) where
import Prelude

main :: IO ()
main = do
  putStrLn $ showList showInt [1 .. 5]
  putStrLn $ showList showInt [1 .. 1]
  putStrLn $ showList showInt [1 .. 0]
  putStrLn $ showList showInt [1,3 .. 10]
  putStrLn $ showList showInt [1, -1 .. -5]
  putStrLn $ showList showInt $ take 5 [1 ..]
  putStrLn $ showList showInt $ take 5 [1,3 ..]