• + 1 comment

    Achieved something similar here:

    putStr (unlines (map (\line -> unwords (map (\(x:[]) -> show x) line)) rows))
    

    where rows is [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]]