Skip to content

Instantly share code, notes, and snippets.

@nattybear
Created November 15, 2024 13:56
Show Gist options
  • Save nattybear/a52527d75f977bfbcd7531a58281b9ce to your computer and use it in GitHub Desktop.
Save nattybear/a52527d75f977bfbcd7531a58281b9ce to your computer and use it in GitHub Desktop.
하스켈/cabal

어떤 패키지를 GHCi에서 시험 삼아 써보고 싶을 때 다음과 같이 크게 두 가지 방법을 써왔다.

  • 시스템 전역에 설치한다.
  • 새 프로젝트를 만든다.

그런데 다음과 같이 입력하면 전역에 설치할 필요도 없고 새 프로젝트를 만들지 않고 패키지를 써볼 수 있다.1

cabal repl --build-depends aeson

Footnotes

  1. 레딧 링크

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment