Skip to content

Instantly share code, notes, and snippets.

@fragamus
Created November 13, 2018 03:35
Show Gist options
  • Save fragamus/ae85e57ec1c3ccdfec26c626011e91da to your computer and use it in GitHub Desktop.
Save fragamus/ae85e57ec1c3ccdfec26c626011e91da to your computer and use it in GitHub Desktop.
Can someone walk me through this error
• Couldn't match type ‘svg-builder-0.1.1:Graphics.Svg.Core.Element’
with ‘blaze-markup-0.8.2.2:Text.Blaze.Internal.MarkupM ()’
Expected type: QDiagram SVG V2 Double Any
-> blaze-markup-0.8.2.2:Text.Blaze.Internal.Markup
Actual type: QDiagram SVG V2 Double Any -> Result SVG V2 Double
• In the second argument of ‘(.)’, namely
‘renderDia SVG (SVGOptions (mkWidth 400) Nothing "" [] True)’
In the second argument of ‘(.)’, namely
‘renderSvg
. renderDia SVG (SVGOptions (mkWidth 400) Nothing "" [] True)’
In the second argument of ‘(.)’, namely
‘Lazy.toChunks
. renderSvg
. renderDia SVG (SVGOptions (mkWidth 400) Nothing "" [] True)’
|
296 | svg = Strict.concat . Lazy.toChunks . renderSvg . renderDia SVG (SVGOptions (mkWidth 400) Nothing "" [] True)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@Lysxia
Copy link

Lysxia commented Nov 13, 2018

There are at least two renderSvg and you seem to be using the wrong one (from blaze, when it should come from diagrams-svg which uses svg-builder). https://hoogle.haskell.org/?hoogle=renderSvg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment