diff options
Diffstat (limited to 'lib/Data/Packed/Internal/Common.hs')
-rw-r--r-- | lib/Data/Packed/Internal/Common.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Data/Packed/Internal/Common.hs b/lib/Data/Packed/Internal/Common.hs index 2b3ec28..c3a733c 100644 --- a/lib/Data/Packed/Internal/Common.hs +++ b/lib/Data/Packed/Internal/Common.hs | |||
@@ -60,6 +60,11 @@ common f = commonval . map f where | |||
60 | infixl 0 // | 60 | infixl 0 // |
61 | (//) = flip ($) | 61 | (//) = flip ($) |
62 | 62 | ||
63 | -- hmm.. | ||
64 | ww2 w1 o1 w2 o2 f = w1 o1 $ \a1 -> w2 o2 $ \a2 -> f a1 a2 | ||
65 | ww3 w1 o1 w2 o2 w3 o3 f = w1 o1 $ \a1 -> ww2 w2 o2 w3 o3 (f a1) | ||
66 | ww4 w1 o1 w2 o2 w3 o3 w4 o4 f = w1 o1 $ \a1 -> ww3 w2 o2 w3 o3 w4 o4 (f a1) | ||
67 | |||
63 | -- GSL error codes are <= 1024 | 68 | -- GSL error codes are <= 1024 |
64 | -- | error codes for the auxiliary functions required by the wrappers | 69 | -- | error codes for the auxiliary functions required by the wrappers |
65 | errorCode :: Int -> String | 70 | errorCode :: Int -> String |