Skip to content

Instantly share code, notes, and snippets.

@deepakjois
Created May 10, 2012 04:59
Show Gist options
  • Save deepakjois/2651119 to your computer and use it in GitHub Desktop.
Save deepakjois/2651119 to your computer and use it in GitHub Desktop.
src/Graphics/BarChart/Rendering.hs:75:14:
Could not deduce (Renderable Diagrams.TwoD.Text.Text b0)
arising from a use of `text'
from the context (Measurable a, Show a)
bound by the type signature for
drawBarChart :: (Measurable a, Show a) =>
Config -> BarChart a -> Diagram SVG R2
at src/Graphics/BarChart/Rendering.hs:(72,1)-(76,76)
Possible fix:
add (Renderable Diagrams.TwoD.Text.Text b0) to the context of
the type signature for
drawBarChart :: (Measurable a, Show a) =>
Config -> BarChart a -> Diagram SVG R2
or add an instance declaration for
(Renderable Diagrams.TwoD.Text.Text b0)
In the first argument of `(<>)', namely `text caption'
In the expression: text caption <> strutX width <> strutY height
In an equation for `title':
title = text caption <> strutX width <> strutY height
src/Graphics/BarChart/Rendering.hs:75:30:
Could not deduce (Backend b0 R2) arising from a use of `strutX'
from the context (Measurable a, Show a)
bound by the type signature for
drawBarChart :: (Measurable a, Show a) =>
Config -> BarChart a -> Diagram SVG R2
at src/Graphics/BarChart/Rendering.hs:(72,1)-(76,76)
Possible fix:
add (Backend b0 R2) to the context of
the type signature for
drawBarChart :: (Measurable a, Show a) =>
Config -> BarChart a -> Diagram SVG R2
or add an instance declaration for (Backend b0 R2)
In the first argument of `(<>)', namely `strutX width'
In the second argument of `(<>)', namely
`strutX width <> strutY height'
In the expression: text caption <> strutX width <> strutY height
src/Graphics/BarChart/Rendering.hs:75:37:
Couldn't match expected type `Double'
with actual type `a0 -> Double'
In the first argument of `strutX', namely `width'
In the first argument of `(<>)', namely `strutX width'
In the second argument of `(<>)', namely
`strutX width <> strutY height'
src/Graphics/BarChart/Rendering.hs:75:37:
Couldn't match type `V a0' with `R2'
In the first argument of `strutX', namely `width'
In the first argument of `(<>)', namely `strutX width'
In the second argument of `(<>)', namely
`strutX width <> strutY height'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment