Skip to content

bhongy/learn-haskell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn Haskell

Set up

Follow: https://www.haskell.org/downloads

I chose minimum installer and installed directly to my local machine (macOS). I use Stack for package management.

Play in ghci

stack setup
stack ghci

# (compile and) load a file
:load <file>
:l <file>
:l basic # basic.sh

# reload the modules
:reload
:r

Starting a new project

stack new <project_name> [template]
cd <project_name>
stack build
stack exec <project_name>-exe # run the compiled project executable

stack build downloads and build (install) dependencies.

Notes about Stack and Package Management

use stack to manage packages (as well as local GHC).

Adding a new package

  • use Hackage or Hoogle to search for new packages
  • update dependencies in package.yaml
  • run stack build

About

Learn Haskell from various sources.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published