X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FRealFunction.hs;h=307a0f0c5cb9596a58d8c6375ee9b06fbd79266c;hb=2ff335e99a1e12628b87037e08740fbb241413a6;hp=01e34bdf39d086e7dbced9690ba6c7a891cda844;hpb=8c7f684c5b1a6941a552d2101aff70fe1f9a23ec;p=spline3.git diff --git a/src/RealFunction.hs b/src/RealFunction.hs index 01e34bd..307a0f0 100644 --- a/src/RealFunction.hs +++ b/src/RealFunction.hs @@ -3,8 +3,7 @@ module RealFunction ( RealFunction, cmult, - fexp - ) + fexp ) where @@ -71,5 +70,5 @@ cmult coeff f = (*coeff) . f -- fexp :: (RealFunction a) -> Int -> (RealFunction a) fexp f n - | n == 0 = (\_ -> 1) + | n == 0 = const 1 | otherwise = \x -> (f x)^n