From 1c8e586c26f05d86bdfdeb660b730546227719d7 Mon Sep 17 00:00:00 2001 From: solunolab Date: Wed, 17 Jun 2026 22:38:07 +0800 Subject: [PATCH] chore: fix some comments to improve readability Signed-off-by: solunolab --- bench/locli/src-quick/Data/Reducer.hs | 4 ++-- bench/locli/src-quick/Graphics/EasyPlot.hs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bench/locli/src-quick/Data/Reducer.hs b/bench/locli/src-quick/Data/Reducer.hs index 2e4bcfe78c1..dd1287a41f7 100644 --- a/bench/locli/src-quick/Data/Reducer.hs +++ b/bench/locli/src-quick/Data/Reducer.hs @@ -43,7 +43,7 @@ instance ( Foldable f2 r1 <-> r2 = Chain r1 r2 -- Explicitly chain reducers with a projection function that extracts a Foldable and --- an initial accumulator value from the first reducer's reult value +-- an initial accumulator value from the first reducer's result value chainWith :: ( Foldable f1 , Foldable f2 @@ -67,7 +67,7 @@ instance Reducer (HigherOrder a) where initialOf _ = ([], Nothing) reducerOf (Threshold f) = go where - -- still in intial state? always use the head of the original sequence as first data point + -- still in initial state? always use the head of the original sequence as first data point go ([], _) h = ([h], Just h) go (acc@(h:_), _) next | f h next = (next:acc, Just next) diff --git a/bench/locli/src-quick/Graphics/EasyPlot.hs b/bench/locli/src-quick/Graphics/EasyPlot.hs index e852fbae358..ea080e223b0 100644 --- a/bench/locli/src-quick/Graphics/EasyPlot.hs +++ b/bench/locli/src-quick/Graphics/EasyPlot.hs @@ -197,7 +197,7 @@ data Graph3D x y z = -- ^ plots data read from a file, optionally giving indices of which columns to plot as x, y and z -- | Options which can be used with 'plot'' -data GnuplotOption = Interactive -- ^ keeps gnuplot open, so that you can interact with the plot (only usefull with 'X11') +data GnuplotOption = Interactive -- ^ keeps gnuplot open, so that you can interact with the plot (only useful with 'X11') | Debug -- ^ keeps intermediate files used to invoke gnuplot, such as the script '_plot.p' and the datafiles '_plot*.dat'. deriving Eq