Revision as of 07:56, 6 September 2019
First program in Haskell
In your favorite development environment (VS Code by default):
- Crate a file
simple.hs.
- Create a function
pythagoras a b that computes c based on
. Necessary functions can be found: Hoogle
- Open
ghci and run the implemented function with 3 4. File can be loaded using command :l (:load) and reloaded with :r (:reload).