{"action":"opened","issue":{"url":"https://api.github.com/repos/diagrams/diagrams-contrib/issues/76","repository_url":"https://api.github.com/repos/diagrams/diagrams-contrib","labels_url":"https://api.github.com/repos/diagrams/diagrams-contrib/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/diagrams/diagrams-contrib/issues/76/comments","events_url":"https://api.github.com/repos/diagrams/diagrams-contrib/issues/76/events","html_url":"https://github.com/diagrams/diagrams-contrib/issues/76","id":332097002,"node_id":"MDU6SXNzdWUzMzIwOTcwMDI=","number":76,"title":"Can not build with stack","user":{"login":"jdevoto","id":305234,"node_id":"MDQ6VXNlcjMwNTIzNA==","avatar_url":"https://avatars3.githubusercontent.com/u/305234?v=4","gravatar_id":"","url":"https://api.github.com/users/jdevoto","html_url":"https://github.com/jdevoto","followers_url":"https://api.github.com/users/jdevoto/followers","following_url":"https://api.github.com/users/jdevoto/following{/other_user}","gists_url":"https://api.github.com/users/jdevoto/gists{/gist_id}","starred_url":"https://api.github.com/users/jdevoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdevoto/subscriptions","organizations_url":"https://api.github.com/users/jdevoto/orgs","repos_url":"https://api.github.com/users/jdevoto/repos","events_url":"https://api.github.com/users/jdevoto/events{/privacy}","received_events_url":"https://api.github.com/users/jdevoto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-13T17:45:26Z","updated_at":"2018-06-13T17:45:26Z","closed_at":null,"author_association":"NONE","body":"Hello.\r\n\r\nI have a small project. I tried to build it with stack and I get the following error\r\n\r\n[15 of 28] Compiling Diagrams.TwoD.Path.Follow ( src/Diagrams/TwoD/Path/Follow.hs, .stack-work/dist/x86_64-linux/Cabal-2.0.1.0/build/Diagrams/TwoD/Path/Follow.o )\r\n    \r\n    /tmp/stack30251/diagrams-contrib-1.4.3/src/Diagrams/TwoD/Path/Follow.hs:64:21: error:\r\n        • No instance for (Semigroup (Semi (Trail' Line V2 n) (Angle n)))\r\n            arising from the 'deriving' clause of a data type declaration\r\n          Possible fix:\r\n            use a standalone 'deriving instance' declaration,\r\n              so you can specify the instance context yourself\r\n        • When deriving the instance for (Semigroup (Following n))\r\n       |\r\n    64 |   deriving (Monoid, Semigroup)\r\n\r\nHere is the stack.yaml\r\n\r\n# This file was automatically generated by 'stack init'\r\n#\r\n# Some commonly used options have been documented as comments in this file.\r\n# For advanced use and comprehensive documentation of the format, please see:\r\n# https://docs.haskellstack.org/en/stable/yaml_configuration/\r\n\r\n# Resolver to choose a 'specific' stackage snapshot or a compiler version.\r\n# A snapshot resolver dictates the compiler version and the set of packages\r\n# to be used for project dependencies. For example:\r\n#\r\n# resolver: lts-3.5\r\n# resolver: nightly-2015-09-21\r\n# resolver: ghc-7.10.2\r\n# resolver: ghcjs-0.1.0_ghc-7.10.2\r\n# resolver:\r\n#  name: custom-snapshot\r\n#  location: \"./custom-snapshot.yaml\"\r\n# resolver: lts-11.12\r\nresolver: lts-10.10  # changed from the up\r\n\r\n\r\n# User packages to be built.\r\n# Various formats can be used as shown in the example below.\r\n#\r\n# packages:\r\n# - some-directory\r\n# - https://example.com/foo/bar/baz-0.0.2.tar.gz\r\n# - location:\r\n#    git: https://github.com/commercialhaskell/stack.git\r\n#    commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a\r\n# - location: https://github.com/commercialhaskell/stack/commit/e7b331f14bcffb8367cd58fbfc8b40ec7642100a\r\n#   extra-dep: true\r\n#  subdirs:\r\n#  - auto-update\r\n#  - wai\r\n#\r\n# A package marked 'extra-dep: true' will only be built if demanded by a\r\n# non-dependency (i.e. a user package), and its test suites and benchmarks\r\n# will not be run. This is useful for tweaking upstream packages.\r\npackages:\r\n- .\r\n\r\n\r\n# Dependency packages to be pulled from upstream that are not in the resolver\r\n# (e.g., acme-missiles-0.3)\r\nextra-deps:\r\n\r\n- diagrams-1.4\r\n- diagrams-core-1.4.1\r\n- diagrams-lib-1.4.2.2\r\n- diagrams-solve-0.1.1\r\n- dual-tree-0.2.2\r\n- diagrams-contrib-1.4.3\r\n- diagrams-svg-1.4.2\r\n- cubicbezier-0.6.0.5\r\n- mfsolve-0.3.2.0\r\n- fast-math-1.0.2\r\n- newtype-generics-0.5.3\r\n\r\n\r\n# Override default flag values for local packages and extra-deps\r\n# flags: {}\r\n\r\n# Extra package databases containing global packages\r\n# extra-package-dbs: []\r\n\r\n# Control whether we use the GHC we find on the path\r\n# system-ghc: true\r\n#\r\n# Require a specific version of stack, using version ranges\r\n# require-stack-version: -any # Default\r\n# require-stack-version: \">=1.6\"\r\n#\r\n# Override the architecture used by stack, especially useful on Windows\r\n# arch: i386\r\n# arch: x86_64\r\n#\r\n# Extra directories used by stack for building\r\n# extra-include-dirs: [/path/to/dir]\r\n# extra-lib-dirs: [/path/to/dir]\r\n#\r\n# Allow a newer minor version of GHC than the snapshot specifies\r\n# compiler-check: newer-minor\r\n\r\nand here is the package.yaml\r\nname:                heathsim\r\nversion:             0.1.0.0\r\ngithub:              \"jdevoto/heathsim\"\r\nlicense:             BSD3\r\nauthor:              \"Jorge A. Devoto\"\r\nmaintainer:          \"jorge.a.devoto@gmail.com\"\r\ncopyright:           \"GNU\"\r\n\r\nextra-source-files:\r\n- README.md\r\n- ChangeLog.md\r\n\r\n# Metadata used when publishing your package\r\n# synopsis:            Short description of your package\r\n# category:            programing\r\n\r\n# To avoid duplicated efforts in documentation and dealing with the\r\n# complications of embedding Haddock markup inside cabal files, it is\r\n# common to point users to the README.md file.\r\ndescription:         Please see the README on GitHub at <https://github.com/jdevoto/heathsim#readme>\r\n\r\ndependencies:\r\n- base >= 4.7 && < 5\r\n- diagrams # added\r\n\r\nlibrary:\r\n  source-dirs: src\r\n\r\nexecutables:\r\n  heathsim-exe:\r\n    main:                Main.hs\r\n    source-dirs:         app\r\n    ghc-options:\r\n    - -threaded\r\n    - -rtsopts\r\n    - -with-rtsopts=-N\r\n    dependencies:\r\n    - heathsim\r\n\r\ntests:\r\n  heathsim-test:\r\n    main:                Spec.hs\r\n    source-dirs:         test\r\n    ghc-options:\r\n    - -threaded\r\n    - -rtsopts\r\n    - -with-rtsopts=-N\r\n    dependencies:\r\n    - heathsim\r\n\r\nThanks for any help\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"jdevoto"}}