From e83003ac38675e385fd8f9e8bbce4137e35d68a2 Mon Sep 17 00:00:00 2001 From: James Cook Date: Fri, 9 Mar 2012 14:20:15 -0500 Subject: [PATCH] CSpline can be a newtype --- src/Math/Spline/Hermite.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Math/Spline/Hermite.hs b/src/Math/Spline/Hermite.hs index 3b6186a..120111e 100644 --- a/src/Math/Spline/Hermite.hs +++ b/src/Math/Spline/Hermite.hs @@ -19,7 +19,7 @@ import Data.VectorSpace -- | Cubic Hermite splines. These are cubic splines defined by a -- sequence of control points and derivatives at those points. -data CSpline a = CSpline [(Scalar a,a,a)] +newtype CSpline a = CSpline [(Scalar a,a,a)] -- | Cubic splines specified by a list of control points, -- where each control point is given by a triple of parameter value,