tags:

views:

121

answers:

1

Possible Duplicate:
What does the exclamation mark mean in a Haskell declaration?

In Alex the generated boilerplate code includes

data AlexPosn = AlexPn !Int  -- absolute character offset
                       !Int  -- line number
                       !Int  -- column number

What does the ! in front of the Int indicate?

+3  A: 

It´s a strictness flag as oposed to lazy evaluation.

Seiti