Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start coding section #208

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions site/start-coding.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: Start Coding now
lsmor marked this conversation as resolved.
Show resolved Hide resolved
page: start-coding
isSetUp: true
---

## Install a development environment in three steps

A Haskell development environment consist in:
lsmor marked this conversation as resolved.
Show resolved Hide resolved

- a compiler (`ghc`)
- a language server (`hls`)
- a building tool (`cabal` and/or `stack`)
lsmor marked this conversation as resolved.
Show resolved Hide resolved
- an editor compatible with the language server protocol.

It is recommended to use `ghcup` to manage your haskell toolchain and `vscode` as your editor.

- **Step 1**: Install [GHCup](https://www.haskell.org/ghcup/). You'll be prompted to install some tools: Install `hls` and optionally `stack`. (`stack` users should [configure it properly](https://docs.haskellstack.org/en/stable/Stack_and_VS_Code/#workaround-1)).
- **Step 2**: Install [vscode](https://code.visualstudio.com/). For integration with other editors see `hls` [documentation](https://haskell-language-server.readthedocs.io/en/latest/configuration.html#configuring-your-editor)
- **Step 3**: Open `vscode` and install the [haskell extension](https://marketplace.visualstudio.com/items?itemName=haskell.haskell) either using the extension panel or pressing CTRL+P and `ext install haskell.haskell`.

## Try without installing Haskell
lsmor marked this conversation as resolved.
Show resolved Hide resolved

If you don't want to install the Haskell toolchain locally, you have a ready-to-use environment in Gitpod.

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/gitpod-io/template-haskell)
1 change: 1 addition & 0 deletions site/templates/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<li $if(isCommunity)$ class="active" $endif$ ><a href="/community/">Community</a></li>
<li $if(isDocumentation)$ class="active" $endif$ ><a href="/documentation/">Documentation</a></li>
<li $if(isDonations)$ class="active" $endif$ ><a href="/donations/">Donate</a></li>
<li $if(isSetUp)$ class="active" $endif$ ><a href="/start-coding/">Start Coding now</a></li>
lsmor marked this conversation as resolved.
Show resolved Hide resolved
</ul>
</div>
</div>
Expand Down