Diagrams/FAQ
From HaskellWiki
< Diagrams(Difference between revisions)
(add info about an error message) |
(→Couldn't match type `V (Point R2)' with `R2': update module name) |
||
| (One intermediate revision not shown.) | |||
| Line 17: | Line 17: | ||
This is due to a bug in GHC. As a workaround, you can simply add the import | This is due to a bug in GHC. As a workaround, you can simply add the import | ||
| - | import | + | import Diagrams.Core.Points |
to your file. See also [http://projects.haskell.org/diagrams/manual/diagrams-manual.html#couldn-t-match-type-v-p2-with-r2 the user manual]. | to your file. See also [http://projects.haskell.org/diagrams/manual/diagrams-manual.html#couldn-t-match-type-v-p2-with-r2 the user manual]. | ||
| + | |||
| + | [[Category:FAQ]] | ||
Current revision
Diagrams frequently asked questions.
Contents |
1 Miscellaneous
1.1 Can I render a diagram to the screen and then know which part of the diagram a user has clicked on?
Yes. See the user manual section on using queries.
1.2 When I try to compile, the linking phase hangs eating CPU and never finishes
It seems this can be caused on OS X by a mixture of 32- and 64-bit libraries. For example see this bug report. Ensure that your GHC and your gtk libraries are either both 32-bit or both 64-bit.
2 Error messages
2.1 Couldn't match type `V (Point R2)' with `R2'
This is due to a bug in GHC. As a workaround, you can simply add the import
import Diagrams.Core.Points
to your file. See also the user manual.
