]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - src/RealFunction.hs
src/RealFunction.hs: ignore orphan instance warnings.
[spline3.git] / src / RealFunction.hs
index 307a0f0c5cb9596a58d8c6375ee9b06fbd79266c..37babf6b7fc351c1ac6621b2eaa4ce0e8962b056 100644 (file)
@@ -1,3 +1,4 @@
+{-# OPTIONS_GHC -Wno-orphans #-}
 {-# LANGUAGE FlexibleInstances #-}
 
 module RealFunction (
@@ -6,7 +7,9 @@ module RealFunction (
   fexp )
 where
 
-
+-- Presumably this is faster without a newtype wrapper, and that's why
+-- we're about to define a bunch of orphan instances below. Note the
+-- GHC pragma thingy at the top of this file to ignore those warnings.
 type RealFunction a = (a -> Double)