From 7e769bc009ce8ff5eddd2fc78bc76c47a2cf28d7 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Thu, 22 Jan 2026 21:37:38 +0100 Subject: [PATCH] Document origin coordinates of SourcePos --- src/Text/Parsec/Pos.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text/Parsec/Pos.hs b/src/Text/Parsec/Pos.hs index 02a7b213..9c2b0ef6 100644 --- a/src/Text/Parsec/Pos.hs +++ b/src/Text/Parsec/Pos.hs @@ -37,8 +37,8 @@ type Column = Int -- | The abstract data type @SourcePos@ represents source positions. It -- contains the name of the source (i.e. file name), a line number and --- a column number. @SourcePos@ is an instance of the 'Show', 'Eq' and --- 'Ord' class. +-- a column number. The upper left is (1, 1). @SourcePos@ is an +-- instance of the 'Show', 'Eq' and 'Ord' class. data SourcePos = SourcePos SourceName !Line !Column deriving ( Eq, Ord, Data, Typeable)