[Haskell-cafe] Constructor question
Ben Millwood
haskell at benmachine.co.uk
Sat Jul 31 09:55:57 EDT 2010
On Sat, Jul 31, 2010 at 2:32 PM, Ivan Lazar Miljenovic
<ivan.miljenovic at gmail.com> wrote:
>
> 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
>
Actually, this isn't a bang pattern: the 'a' here is not a pattern,
it's a type variable. Strictness flags in data declarations are a
haskell98 feature.
See:
http://www.haskell.org/onlinereport/haskell2010/haskellch4.html#x10-680004.2
the paragraph on Strictness Flags a little way down that page.
More information about the Haskell-Cafe
mailing list