X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FFunctionValues.hs;h=62b861cea848a7947790b2346de514f12cd07b8d;hb=1a5c3a7d50c4d5692f62791219d3fbf37af133ba;hp=dc1f0d00f6fd7cc4a6bc36fa67b54efd5d2037d7;hpb=83ef0aaeae074756e4ee90d72d3e27e74e136061;p=spline3.git diff --git a/src/FunctionValues.hs b/src/FunctionValues.hs index dc1f0d0..62b861c 100644 --- a/src/FunctionValues.hs +++ b/src/FunctionValues.hs @@ -1,3 +1,6 @@ +-- The "value_at" function pattern matches on some integers, but +-- doesn't handle the "otherwise" case, for performance reasons. +{-# OPTIONS_GHC -Wno-incomplete-patterns #-} {-# LANGUAGE BangPatterns #-} -- | The FunctionValues module contains the 'FunctionValues' type and @@ -14,7 +17,19 @@ module FunctionValues ( value_at ) where -import Prelude hiding ( LT ) +import Prelude( + Bool, + Double, + Eq( (==) ), + Fractional( (/) ), + Int, + Num( (+), (-), (*) ), + Ord ( (>=), (<) ), + Show, + (&&), + and, + not, + return ) import Test.Tasty ( TestTree, testGroup ) import Test.Tasty.HUnit ( Assertion, testCase ) import Test.Tasty.QuickCheck ( Arbitrary( arbitrary ), choose, testProperty )