Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

CSpline can be a newtype

  • Loading branch information...
commit e83003ac38675e385fd8f9e8bbce4137e35d68a2 1 parent 6460e22
@mokus0 mokus0 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/Math/Spline/Hermite.hs
2  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.
Something went wrong with that request. Please try again.