elm-lang / elm-platform

Bundle of all core development tools for Elm
BSD 3-Clause "New" or "Revised" License
762 stars 125 forks source link

Note about using runghc-7.10.x #203

Closed c6c7 closed 6 years ago

c6c7 commented 7 years ago

The latest version of the Haskell Platform installs ghc 8.0.2. As a result, using runhaskell will cause numerous dependency problems when building elm from source. An easy fix to this problem is to install an older version of the Haskell Platform and use the provided runghc-7.10.x in place of runhaskell.

process-bot commented 7 years ago

Thanks for the pull request! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

jvoigtlaender commented 7 years ago

I'm not sure your note as added makes much sense. If a user has installed (only) a Haskell Platform version that is greater than 7.10.x, then runghc-7.10.x will not be available to them, right?

c6c7 commented 7 years ago

Of course. I overlooked that.

What I really wanted was something along the lines of, "If you're using Haskell Platform, don't assume that you're stuck with the latest version for compiling elm. You can install an older version that will provide you the older compiler you need and also allow you to keep the latest version in place."

EDIT: I just amended the commit and did a forced push to the branch. Not sure if that appears explicitly anywhere on this page, beside the commit hash changing.

evancz commented 6 years ago

I want to have a comprehensive way to do this so there's not a series of comments talking about all the possible bugs over time. So I don't think this is the right path in the long run.