Closed jdevoto closed 6 years ago
What happens if you change to diagrams-lib-1.4.2.3
in your extra-deps
?
I get this message:
/tmp/stack4346/diagrams-contrib-1.4.3/src/Diagrams/TwoD/Path/Follow.hs:64:21: error: • No instance for (Semigroup (Semi (Trail' Line V2 n) (Angle n))) arising from the 'deriving' clause of a data type declaration Possible fix: use a standalone 'deriving instance' declaration, so you can specify the instance context yourself • When deriving the instance for (Semigroup (Following n)) | 64 | deriving (Monoid, Semigroup)
I have the same problem. There is no porblem if I use resolver: lts-11.12 in stack.yaml. But if I do this, then I get
/home/jdevoto/Haskell/Projects/heathsim/src/Lib.hs:9:1: error: Could not find module ‘Diagrams.Prelude’ Use -v to see a list of the files searched for. | 9 | import Diagrams.Prelude | ^^^^^^^^^^^^^^^^^^^^^^^
/home/jdevoto/Haskell/Projects/heathsim/src/Lib.hs:10:1: error: Could not find module ‘Diagrams.Backend.Cairo.CmdLine’ Use -v to see a list of the files searched for. | 10 | import Diagrams.Backend.Cairo.CmdLine | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Completed 5 action(s).
Thanks in advance for any help
Jorge
On 13 June 2018 at 15:46, Brent Yorgey notifications@github.com wrote:
What happens if you change to diagrams-lib-1.4.2.3 in your extra-deps?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/diagrams/diagrams-contrib/issues/76#issuecomment-397045094, or mute the thread https://github.com/notifications/unsubscribe-auth/AASoUtgovjSVr29D3CpaoYGNnydWy2-tks5t8V4LgaJpZM4UmpR0 .
@jdevoto Sorry for the delay in responding. What packages do you have listed in the build-depends
field in your .cabal
file? You need to list diagrams-lib
and diagrams-cairo
if you want to use those modules.
I did what you suggested putting diagrams-lib and diagrams-cairo in the package.yaml and it worked.
Thanks for your help!!!
Jorge
On Wed, 27 Jun 2018 at 09:06, Brent Yorgey notifications@github.com wrote:
@jdevoto https://github.com/jdevoto Sorry for the delay in responding. What packages do you have listed in the build-depends field in your .cabal file? You need to list diagrams-lib and diagrams-cairo if you want to use those modules.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/diagrams/diagrams-contrib/issues/76#issuecomment-400648395, or mute the thread https://github.com/notifications/unsubscribe-auth/AASoUiUcWUsIhXyl6_3IJA4_lRmIuofMks5uA3VEgaJpZM4UmpR0 .
Great, glad it worked!
Hello.
I have a small project. I tried to build it with stack and I get the following error
Here is the stack.yaml
Thanks for any help