Translations:FP Laboratory 1/7/en
Jump to navigation
Jump to search
First program in Haskell
In your favorite development environment (VS Code by default):
- Crate a file
simple.hs. - Create a function
pythagoras a bthat computescbased on Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle c^2 = a^2 + b^2 \,,} . Necessary functions can be found: Hoogle - Open
ghciand run the implemented function with3 4. File can be loaded using command:l(:load) and reloaded with:r(:reload).