packages feed

plot-light 0.3.3.1 → 0.3.3.2

raw patch · 2 files changed

+8/−4 lines, 2 filesdep ~colourdep ~scientific

Dependency ranges changed: colour, scientific

Files

plot-light.cabal view
@@ -1,5 +1,5 @@ name:                plot-light-version:             0.3.3.1+version:             0.3.3.2 synopsis:            A lightweight plotting library, exporting to SVG description:         This library provides drawing and plotting datastructures and functions; it is aimed in particular at scientific visualization, but it also exposes its plotting primitives and a small but general purpose 2D geometry library.                      @@ -38,10 +38,10 @@                        Data.Parsers   build-depends:       base >= 4.7 && < 5                      , blaze-svg >= 0.3.6.1-                     , colour >= 2.3.4+                     , colour >= 2.3.3                      , containers >= 0.5.7.1                      , mtl-                     , scientific >= 0.3.5.2+                     , scientific >= 0.3.5.1                      , text >= 1.2.2.2                      , time                      , data-default-class >= 0.1.2.0
src/Graphics/Rendering/Plot/Light/Internal/Geometry.hs view
@@ -35,7 +35,7 @@   ) where -import Data.Monoid ((<>))+-- import Data.Monoid ((<>))  import GHC.Generics import Data.Default.Class@@ -131,6 +131,7 @@    instance (Ord a, Num a) => Monoid (Frame a) where   mempty = Frame (Point 0 0) (Point 0 0)+  mappend = (<>)   mkFrame :: Point a -> Point a -> Frame a@@ -242,6 +243,7 @@ -- | Vectors form a monoid w.r.t. vector addition instance Num a => Monoid (V2 a) where   mempty = V2 0 0+  mappend = (<>)  -- | Additive group : -- @@ -331,6 +333,7 @@ -- | Diagonal matrices form a monoid w.r.t. matrix multiplication and have the identity matrix as neutral element instance Num a => Monoid (DiagMat2 a) where   mempty = DMat2 1 1+  mappend = (<>)  instance Num a => Semigroup (Mat2 a) where   (<>) = (##)@@ -338,6 +341,7 @@ -- | Matrices form a monoid w.r.t. matrix multiplication and have the identity matrix as neutral element instance Num a => Monoid (Mat2 a) where   mempty = Mat2 1 0 0 1+  mappend = (<>)  -- | Create a diagonal matrix diagMat2 :: Num a => a -> a -> DiagMat2 a