Call struct function with different arguments
This commit is contained in:
parent
0e54cccd74
commit
d8c12b5418
@ -6,5 +6,6 @@ main :: IO ()
|
|||||||
main = do
|
main = do
|
||||||
hello "Haskell"
|
hello "Haskell"
|
||||||
helloStruct T{a = True, b = 42}
|
helloStruct T{a = True, b = 42}
|
||||||
|
helloStruct T{a = False, b = maxBound}
|
||||||
helloShape $ Circle 3.14
|
helloShape $ Circle 3.14
|
||||||
helloShape $ Rectangle 10.0 5.0
|
helloShape $ Rectangle 10.0 5.0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user