shithub: MicroHs

ref: c5052bb7882174ed1fe11da99dbbe9facb45bcb3
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 ..]