[Haskell-cafe] Constructor question

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Sat Jul 31 10:01:12 EDT 2010


Ben Millwood <haskell at benmachine.co.uk> writes:

> 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.

Ugh, yeah; I should read what links I google for before putting them in
emails :s

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com


More information about the Haskell-Cafe mailing list