[Haskell-cafe] Infix tuple comma query (,)
Paul Keir
pkeir at dcs.gla.ac.uk
Mon Apr 6 11:53:24 EDT 2009
module Main where
data (:%^&) a b = a :%^& b deriving (Show)
main = do
print $ 18 :%^& (Just 99)
print $ (,) 9 10
print $ 9 , 10
The last line in the code above causes a compile error.
Why does infix use of the comma (tuple constructor?) function fail
without brackets?
Thanks,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090406/aafa07fe/attachment.htm
More information about the Haskell-Cafe
mailing list