Created
November 13, 2018 03:35
-
-
Save fragamus/ae85e57ec1c3ccdfec26c626011e91da to your computer and use it in GitHub Desktop.
Can someone walk me through this error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
• 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) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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