VS Code로 하스켈 환경 구축하기

 
  1. VS Code 설치. 당근이지
  1. Haskelly extentsion 설치
  1. 터미널에서 다음을 실행
    1. stack install intero stack install QuickCheck
      아마 이게 바로 안 될 텐데 그러면 /.stack/global-project/stack.yaml 파일을 찾아 아래 내용을 추가.
      extra-deps: - conduit-1.2.13.1@sha256:afd4db7fe66ae7af3d418e1a932384a8dee08df2f6299cca80e53ba964ce1228,4371 - conduit-extra-1.1.17@sha256:dfa0d00dc11a8a4c3fdff15374c378ee34c25a2255b52194aa1ea3c1f1a63fd7,4521 - resourcet-1.1.11@sha256:096a3db6774a728bbe264e3e25c4e40d60e527ebd4b90c0b311deaa8d4cf4f27,1976 - streaming-commons-0.1.19@sha256:3a02f84578f75eac1425dca877f8d697b68d379a21970c1dad96196620404803,5262
4. 이제 stack-run을 설치해야 하는데 그냥 하면 에러가 남.
Create a file: ~/.stack/global-project/stack-cabal-1.24.yaml
flags: {} extra-package-dbs: [] packages: [] extra-deps: [] resolver: lts-8.24
Basically it's using an old stack lts that was from around the time the last update to stack-runwas made.
Then just run this:
stack --stack-yaml ~/.stack/global-project/stack-cabal-1.24.yaml install stack-run
and it should work (did for me, at least)
 

현재 상황

  • code highlight 은 잘 되는데 type hover 기능은 안 된다.
  • 결국 조금, 아주 조금 편한 텍스트 에디터
  • Haskell for Mac 을 버릴 수는 없는 건가?