Simple instructions on how to use and setup a development environment for haskell language
-
PT: Fazer o download do docker
EN: Install docker
docker.com
-
PT: Se o docker não requeriu o download do WSL2 durante a instalação então deverá instalar no link abaixo
EN: If docker didnt required the download of WSL2 during the installation you should download in the link below
install-wsl-2
-
PT: Faça o download do vscode
EN: Download vscode
VsCode
-
PT: Vá no icone de cubinhos no lado esquerdo da tela e digite docker e instale a extensão mostrada na imagem
EN: Go to the cube extension icon, search for docker and install the extension showed in the image
-
PT: Ainda no icone de cubinhos no lado esquerdo da tela e digite WSL e instale a extensão mostrada na imagem
EN: Still on the cube extension icon, search for WSL and install the extension showed in the image
-
PT: Ainda no icone de cubinhos no lado esquerdo da tela e digite Remote Containers e instale a extensão mostrada na imagem
EN: Still on the cube extension icon, search for Remote Containers and install the extension showed in the image
-
PT: Ainda no icone de cubinhos no lado esquerdo da tela e digite Haskelly e instale a extensão mostrada na imagem
EN: Still on the cube extension icon, search for Haskelly and install the extension showed in the image
-
PT: Clicando no icone em destaque deverá aparecer a lista de todos os workspaces do wsl. Vá no topo clicque no dropdown e selecione containers
EN: After clicked in the circled icon vscode should show list of all the wsl workspaces. Go on the top and click in the dropdown and select the containers option
-
PT: Na lista de containeres clique com o botão direito do mouse no container do haskell e clique em attach in new window ou em attach to container
EN: In containers list click with mouse right button in the haskell container and after that click in attach in new window or em attach to container
-
PT: Quando conectado ao container clique em open folder deixe o default root e clique em ok. Com o projeto aberto os seguintes arquivos em azul devem estar visiveis, após isso criei um arquivo hi.hs e compilei(destaques em laranja e vermelho escuro) depois cliquei na opção selecionada em verde e após aberta a aba cliquei no destaque em rosa para acessar o terminal e após isso em vermelho claro rodei o arquivo
EN: When connected to container click in open folder select /root/ and click ok. With the project opened the following files and folders in blue should be visible, after that i created a hi.hs file and compiled it(orange and dark red colors), after it i clicked in the green square to open the tab and clicked in the pink option in the terminal i just have to run the file and see the output in red
-
PT: Caso queira parar o container depois de usa-lo basta no powershell ou terminal basta apenas digitar o seguinte comando Docker stop + processId ou Docker stop + container name
EN: If you want to stop the container after you used it, in powershell and terminal you just have do type the following commands Docker stop + processId or Docker stop + container name
-
PT: Caso queira parar o container via interface visual basta apenas clicar no icone do docker ir na aba containers clicar com o botão direito em cima do container do haskell e selecionar a opção stop
EN: If you want to stop the container using the vscode UI you just have to click on the docker icon, select the haskell container in the containers and with the mouse right button click in stop