fork download
  1. import Data.List
  2. each n = unfoldr $ \xs -> do (x:_) <- Just xs; Just (x, drop n xs)
  3.  
  4. main = do print $ each 4 []
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
[1 of 1] Compiling Main             ( prog.hs, prog.o )

prog.hs:4:10:
    Ambiguous type variable `a' in the constraint:
      `Show a' arising from a use of `print' at prog.hs:4:10-14
    Probable fix: add a type signature that fixes these type variable(s)
stdout
Standard output is empty