mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-04-28 16:19:23 +02:00
[FMFP] Start summary
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
-- Declaring a function. Naming using lowerCamelCase
|
||||
-- Arguments separated by whitespace
|
||||
myFunc :: Int -> Int -> Int
|
||||
myFunc x y
|
||||
| x > 0 = x + y
|
||||
| x < 0 = -x + y
|
||||
|
||||
-- On compile the above function is transformed like this:
|
||||
-- TODO: Transform the template into correct version
|
||||
myFuncXCompiled :: Int -> Int
|
||||
myFuncXCompiled x = x
|
||||
Reference in New Issue
Block a user