
4 Jul
2005
4 Jul
'05
5:08 a.m.
Christoph Bauer
data SourcePos = SourcePos SourceName !Line !Column deriving (Eq,Ord)
My poor haskell knowledge says me, that Line and Column is always strict.
Yes.
So, what does the following function?
forcePos :: SourcePos -> SourcePos forcePos pos@(SourcePos name line column) = seq line (seq column (pos))
AFAICT, nothing. My guess would be that it's an oversight (for instance, it could be a remnant from a prevoius version where the data type was non-strict). Is 'forcePos' used much in the code? -k -- If I haven't seen further, it is by standing in the footprints of giants