[Haskell-beginners] Syntax of Complex
Shishir Srivastava
shishir.srivastava at gmail.com
Mon Jun 15 11:03:24 UTC 2015
Hi,
The Data.Complex package defines the new data type 'Complex' as
----------
data Complex a = !a :+ !a
-------
Where ':+' is an infix operator. I don't however understand the usage of
'!' in front of the type variable 'a'. What exactly is the purpose of '!' ?
Any help would be appreciated.
Thanks,
Shishir Srivastava
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150615/5136adf9/attachment.html>
More information about the Beginners
mailing list