Haskell Tuple Size Limit

Posted by SHiNKiROU on Stack Overflow See other posts from Stack Overflow or by SHiNKiROU
Published on 2010-06-04T23:27:12Z Indexed on 2010/06/05 9:12 UTC
Read the original article Hit count: 170

Filed under:
|

Why I can't construct large tuples in Haskell? Why there's a tuple size limit?

Prelude> (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)

<interactive>:1:0:
    No instance for (Show
                       (t,
                        t1,
                        t2,
                        ...
                        t23))
      arising from a use of `print' at <interactive>:1:0-48
    Possible fix:
      add an instance declaration for
      (Show
         (t,
          t1,
          t2,
          ...
          t23))
    In a stmt of a 'do' expression: print it

© Stack Overflow or respective owner

Related posts about haskell

Related posts about tuples