diff --git a/diagrams-pgf.cabal b/diagrams-pgf.cabal index 34e6870..c03182f 100644 --- a/diagrams-pgf.cabal +++ b/diagrams-pgf.cabal @@ -41,7 +41,7 @@ Library , directory >= 1.0 && < 1.4 , filepath >= 1.2 && < 1.4 , hashable >= 1.1 && < 1.3 - , lens >= 3.8 && < 4.6 + , lens >= 3.8 && < 4.7 , mtl >= 2.1 && < 3.0 , optparse-applicative >= 0.11 && < 0.12 , process >= 1.0 && < 1.3 diff --git a/src/Diagrams/Backend/PGF/Render.hs b/src/Diagrams/Backend/PGF/Render.hs index 6e0bdf0..2a8420f 100755 --- a/src/Diagrams/Backend/PGF/Render.hs +++ b/src/Diagrams/Backend/PGF/Render.hs @@ -87,13 +87,13 @@ toRender (Node (RAnnot (OpacityGroup x)) rs) toRender (Node _ rs) = foldMap toRender rs -renderP :: (Renderable a PGF, Vn a ~ V2 n) => a -> P.Render n +renderP :: (Renderable a PGF, V a ~ V2, N a ~ n) => a -> P.Render n renderP (render PGF -> R r) = r instance Fractional n => Default (Options PGF V2 n) where def = PGFOptions { _surface = def - , _sizeSpec = absolute + , _sizeSpec = absolute , _readable = True , _standalone = False }