Skip to content

pwittchen/learning-haskell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 

Repository files navigation

learning-haskell

Repository created in order to learn basics of Haskell language

Installation of Haskell

Ubuntu

sudo apt-get install haskell-platform

macOS

Go to the website https://www.haskell.org/platform/mac.html, download installer and follow the instructions.

After installation, we can run Haskell console with the follwing command:

$ ghci

We can use Haskell through this console.

Running the programs

We can run haskell programs from a terminal. We just need to add appropriate header.

Examplary program hello.hs:

#!/usr/bin/env runhaskell
main = putStrLn "Hello World!"

We can execute it as follows:

./hello.hs

Moreover, we can load files with functions into ghci as follows:

ghci
ghci > :l our_source_file.hs
ghci > ourFunction

IDEs

Editors

Guidelines

Packages

Unit Testing

Resources

About

learning basics of Haskell language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published