Improving the installation instructions #543
Replies: 5 comments
-
I agree, just printing a simple 'Success' is a lot more clear. It does not solve the problem of users having to run a somewhat random looking piece of code though. A solution could be to bundle a The solution aside, one problem I have is that using |
Beta Was this translation helpful? Give feedback.
-
For the problem of users having to run a somewhat random looking piece of code, what if the code is explained in the documentation where it appears? Something like:
|
Beta Was this translation helpful? Give feedback.
-
Two more thoughts: DRYSince the install steps are different depending on OS but the testing steps are the same for all, would it be helpful to DRY up the README by moving the testing steps out of the Installation section and into their own section? ScriptingI hear the goal of not cluttering the users' environment with something they will only run once. I also hear the goal of making onboarding to Copilot as easy as possible for new users. How would you feel about something like a This could also provide an opportunity to educate users on the basics of starting out with Copilot through comments in the created file ( If desired, Perhaps this violates the "no additional tools, no wrapper scripts" requirement, but since a |
Beta Was this translation helpful? Give feedback.
-
Hi, As a new copilot and Haskell user, I had difficulties in running the Heater example in the README as described in issue #444. I would suggest replacing: runhaskell Heater.hs With: Start ghci: $ ghci Then withing ghci run the following command: (Maybe an explanation of what this command does would be also useful) :set -package copilot-c99 and :set -package copilot-language The output should be similar to: $ ghci
GHCi, version 8.8.4: https://www.haskell.org/ghc/ :? for help
Loaded package environment from /home/gus/.ghc/x86_64-linux-8.8.4/environments/default
Prelude> :set -package copilot-c99
package flags have changed, resetting and loading new packages...
Prelude> :set -package copilot-language
package flags have changed, resetting and loading new packages... Then, to load a Haskell monitor specification file (I'm not sure this is the best name for this file), e.g., the Heater.hs example, run the following command in ghci: :l Heater.hs Then, to generate the files :main PS: The Haskell file should be in the same directory in which you started ghci, or you need to specify the full path to the file. Alternatively, you could fix/propose how to fix the issue of running the original command directly: runhaskell Heater.hs |
Beta Was this translation helpful? Give feedback.
-
Also, add in the section other-linux-distributions before cabal v2-update |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The current installation instructions use the following way to check that Copilot is installed correctly:
I think that way of checking things is a bit ugly. Users unfamiliar with Haskell don't know what's happening.
I'm thinking that maybe we should change it to:
but I'm open to other ideas that are compatible with the current setup (no additional tools, no wrapper scripts).
Beta Was this translation helpful? Give feedback.
All reactions