-
Haskell tutorial ❤️코딩Coding/Haskell하스켈_해스켈 2022. 7. 15. 18:41728x90
https://web.engr.oregonstate.edu/~walkiner/teaching/cs583-sp21/haskell.htmlbrew install ghc cabal-install haskell-stack
Learn you a Haskell ❤️
http://learnyouahaskell.com/chapters
Setting up Neovim w/ Haskell IDE Engine and LSP
https://github.com/haskell/haskell-ide-engineghci 파이썬 처럼 명령 프롬프트 나옴 :l haskell-tu.hs 하스켈 파일 로드한 후 :r 메인 실행 같은 명령어 이걸 해야 내가 쓴 코드가 컴파일 되는것 같다. 그리고 maxInt 같은 내가 선언allocation 해준 변수 를 써 주면 바로 프린트 된 화면을 볼 수 있다. ghci GHCi, version 8.10.7: https://www.haskell.org/ghc/ :? for help Prelude> :l haskell-tut.hs [1 of 1] Compiling Main ( haskell-tut.hs, interpreted ) Ok, one module loaded.
루나빔 Lsp를 사용하기 위해서 "ghcup" & "ghc" 2개 꼭 설치brew search ghcup ==> Formulae ghcup ✔ ghc ✔ ghc@9 brew install ghcup ghc 2개 꼭 설치해야함.
그리고 추가로 "cabal-install"brew search cabal-install ==> Formulae cabal-install ✔
추가로
brew install haskell-stack
하스켈을 하기 위해서 설치해야할 4가지 프로그램ghcup ghc haskell-stack cabal-install
https://www.haskell.org/onlinereport/haskell2010/Haskell Compiler (GHC)
touch haskell-tu.hs ghc --make haskell-tu 하면 3가지 파일이 만들어진다. haskell-tut 실행파일 haskell-tut.hi hi 파일명 haskell-tut.o o 파일명 haskell-tut.hs 하스켈 코드 ./haskell-tut 코드가 실행 된다.
간단한 하스켈 코드-- ghc --make haskell-tut -- ./haskell-tut import Data.List import System.IO main = do putStrLn "What's your name" name <- getLine putStrLn ("Hello " ++ name)
https://github.com/YoungHaKim7/rust_polyglot/tree/main/Haskell_Lang/hello_haskell
https://github.com/krispo/awesome-haskell
https://github.com/soupi/haskell-study-plan/blob/master/README.org#simple-example-programs
https://github.com/haskell-beginners-2022/course-plan
Packages
- module - a collection of functions and custom data types
- package - a collecton of modules + metadata
- Hackage - a central reposity of Haskell packages
- base - standard Haskell library
- Prelude - the module from base imported by default
Haskell Beginners 2022: Lecture 1
https://discourse.haskell.org/t/haskell-tutorial-plzz/4756
https://youtube.com/playlist?list=PLF1Z-APd9zK7usPMx3LGMZEHrECUGodd3
https://youtube.com/playlist?list=PLF1Z-APd9zK5uFc8FKr_di9bfsYv8-lbc
https://github.com/commercialhaskell/rio/#language-extensions
https://www.fpcomplete.com/haskell/library/rio/
반응형'코딩Coding > Haskell하스켈_해스켈' 카테고리의 다른 글
vim에서 vista-plugin쓸 때 필요한 hasktags설치 방법 (0) 2022.11.22 Haskell정리 잘 됨.& Cabal 배우기 좋다. (0) 2022.11.18 Quick Sort in Rust vs Haskell (0) 2022.10.26 haskell compile공부짱❤️@lexi_lambda: The GHC optimization pipeline (0) 2022.10.12 @rae: RebindableSyntax in Haskell (0) 2022.09.17 Tracking Hikes with Haskell- HaskellRank Ep.10 | Tsoding ❤️ (0) 2022.08.28 Haskell Monad tutorial (0) 2022.08.16 하스켈(해스켈, Haskell 컴퓨터 프로그래밍) (0) 2020.06.13