Skip to content

Commit 16022c4

Browse files
Update for manifolds-0.2.3.
1 parent 705970c commit 16022c4

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Graphics/Dynamic/Plot/R2.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -539,15 +539,15 @@ instance Plottable (PointsWeb ℝ (Shade' ℝ)) where
539539

540540
trivs :: [((, Diff ), ((, Diff ), LocalLinear ))]
541541
trivs = map mkTriv locals
542-
where mkTriv ((xc,Shade' yc yce), [(xo, Shade' yo _)])
543-
= ( (xc, xo-xc)
542+
where mkTriv ((xc,Shade' yc yce), [(δxo, Shade' yo _)])
543+
= ( (xc, δxo)
544544
, ( (yc, metricAsLength yce)
545-
, denseLinear $ \δx -> δx * (yo-yc)/(xo-xc) ) )
546-
mkTriv ((xc,Shade' yc yce), [(xl, Shade' yl _), (xr, Shade' yr _)])
545+
, denseLinear $ \δx -> δx * (yo-yc)/δxo ) )
546+
mkTriv ((xc,Shade' yc yce), [(δxl, Shade' yl _), (δxr, Shade' yr _)])
547547
= ( (xc, δxg)
548548
, ( (yc, metricAsLength yce)
549549
, denseLinear $ \δx -> δx * η ) )
550-
where δxg = (xr - xl)/2
550+
where δxg = (δxr - δxl)/2
551551
η = (yr - yl)/(2*δxg)
552552
mkTriv (_,l) = error $ "Encountered point in web with "
553553
++show(length l)++" neighbours. Any point in 1D "

dynamic-plot.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Library
6060
, gtk > 0.10 && < 0.15
6161
, glib
6262
, colour >= 2 && < 3
63-
, manifolds >= 0.2.2 && < 0.2.3
63+
, manifolds >= 0.2.3 && < 0.2.4
6464
, lens < 4.15
6565
Other-Extensions: FlexibleInstances
6666
, TypeFamilies

0 commit comments

Comments
 (0)