Dumping ground for Haskell
Haskell Installation for Windows using Chocolatey
From Admin-Powershell run:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Then from Admin command-prompt
choco install haskell-dev
For REPL:
ghci.exe
To compile:
ghc main.hs
Mostly taken from Derek Banas' video and Learn You a Haskell for Great Good!
- main.hs
- DataTypes.hs
- Maths.hs
- Lists.hs
- Tuples.hs
- ConsoleIO.hs
- Functions.hs
- HigherOrderFunctions.hs
- Lambdas.hs
- Conditionals.hs
- Enums.hs
- CustomTypes.hs
Typing up and exercises from Graham Hutton's book.
- chapter01.hs - All the basics
- chapter02.hs - Lists mostly, basic recursion
- chapter03.hs - Types and classes
- chapter04.hs - Functions
- chapter05.hs - List comprehension
- chapter06.hs - Recursion
- chapter07.hs - Higher order functions
- chapter08.hs - Types and classes