michael rice <[email protected]> writes:

> From: Data.Complex
>
> data (RealFloat a) => Complex a
>   = !a :+ !a
>
> What's the purpose of the exclamation marks?

Forcing; it means that the values are evaluated (up to WHNF) before the
Complex value is constructed:

http://www.haskell.org/ghc/docs/6.12.1/html/users_guide/bang-patterns.html

-- 
Ivan Lazar Miljenovic
[email protected]
IvanMiljenovic.wordpress.com
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to