From 7d019b9032734e57a9c5efd46043509663436b9e Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Fri, 10 Feb 2017 16:44:00 -0500 Subject: [PATCH] Revert "O(1) length." This reverts commit db4025e8daacf7a8a716b5ddc621b6053cff768f. --- src/Source.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Source.hs b/src/Source.hs index 65ae8e8ae..a64f0f1b9 100644 --- a/src/Source.hs +++ b/src/Source.hs @@ -114,7 +114,7 @@ rangeToSourceSpan source range@Range{} = SourceSpan startPos endPos toEndPos line range = SourcePos line (end range) length :: Source -> Int -length = rangeLength . sourceRange +length = Text.length . sourceText null :: Source -> Bool null = Text.null . sourceText