Permalink
Browse files

CSpline can be a newtype

  • Loading branch information...
1 parent 6460e22 commit e83003ac38675e385fd8f9e8bbce4137e35d68a2 @mokus0 mokus0 committed Mar 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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,

0 comments on commit e83003a

Please sign in to comment.