From df2b684229594b4b58c6bb21574839d59c61e747 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Mon, 29 Feb 2016 10:31:53 -0500 Subject: [PATCH] Simplify how we compute combineIntoLeaves. --- test/AlignmentSpec.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/AlignmentSpec.hs b/test/AlignmentSpec.hs index e3d436b71..0765a5dc0 100644 --- a/test/AlignmentSpec.hs +++ b/test/AlignmentSpec.hs @@ -112,7 +112,7 @@ spec = parallel $ do getTotalRange (Source vector) = Range 0 $ length vector - combineIntoLeaves (leaves, start) char = (leaves ++ [ Free $ Annotated (Both (Info (Range start $ start + 1) mempty, Info (Range start $ start + 1) mempty)) (Leaf [ char ]) ], start + 1) + combineIntoLeaves (leaves, start) char = (leaves ++ [ Free $ Annotated (Info <$> (pure (Range start $ start + 1)) <*> mempty) (Leaf [ char ]) ], start + 1) leafWithRangesInSources sources ranges = Free $ Annotated (Info <$> ranges <*> pure mempty) (Leaf $ toList (runLeft sources) ++ toList (runRight sources))