From e2dde2e24f581d37eb862392aee1cb2e09cf0951 Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Wed, 27 Apr 2011 07:13:09 +0000 Subject: fixed cmap signature --- THANKS | 5 +++-- hmatrix.cabal | 2 +- lib/Numeric/ContainerBoot.hs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/THANKS b/THANKS index ac52363..a8641b6 100644 --- a/THANKS +++ b/THANKS @@ -89,8 +89,9 @@ module reorganization, monadic mapVectorM, and many other improvements. helped with the configuration. - Carter Schonwald helped with the configuration for Homebrew OS X and - found a tolerance problem in test "1E5 rots". + found a tolerance problem in test "1E5 rots". He also discovered + a bug in the signature of cmap. - Duncan Coutts reported a problem with configure.hs and contributed - a solution and a simplified a Setup.lhs. + a solution and a simplified Setup.lhs. diff --git a/hmatrix.cabal b/hmatrix.cabal index deb05f7..a8dcb43 100644 --- a/hmatrix.cabal +++ b/hmatrix.cabal @@ -1,5 +1,5 @@ Name: hmatrix -Version: 0.11.0.4 +Version: 0.11.0.5 License: GPL License-file: LICENSE Author: Alberto Ruiz diff --git a/lib/Numeric/ContainerBoot.hs b/lib/Numeric/ContainerBoot.hs index fd94e06..a605545 100644 --- a/lib/Numeric/ContainerBoot.hs +++ b/lib/Numeric/ContainerBoot.hs @@ -95,7 +95,7 @@ class (Complexable c, Fractional e, Element e) => Container c e where arctan2 :: c e -> c e -> c e -- -- | cannot implement instance Functor because of Element class constraint - cmap :: (Element a, Element b) => (a -> b) -> c a -> c b + cmap :: (Element b) => (e -> b) -> c e -> c b -- | constant structure of given size konst :: e -> IndexOf c -> c e -- | create a structure using a function -- cgit v1.2.3