12 |
2 |
HC12-12. Haskell Chapter 12 Practical Tasks: Installing-Haskell-and-first-program |
This lesson marks the beginning of a hands-on journey into Haskell development, focusing on setting up a local environment and running the first program. It starts with installing Haskell, using GHCup, a tool that simplifies managing Haskell versions. Through GHCup, we install GHC (Glasgow Haskell Compiler), Cabal (build tool), Stack (alternative build tool), and HLS (Haskell Language Server) to streamline development. Next, we configure VSCode extensions to enhance productivity with syntax highlighting, code completion, and error checking. With the environment set up, we move on to writing the simplest Haskell program, introducing the basic syntax and structure. The final step is compiling and running our program, demonstrating how Haskell code transforms into an executable. This lesson lays the foundation for a smooth development workflow, preparing us for more advanced Haskell programming in upcoming lessons. |