Call struct function with different arguments

This commit is contained in:
George Thomas 2026-02-19 14:09:30 +00:00
parent 0e54cccd74
commit d8c12b5418

View File

@ -6,5 +6,6 @@ main :: IO ()
main = do
hello "Haskell"
helloStruct T{a = True, b = 42}
helloStruct T{a = False, b = maxBound}
helloShape $ Circle 3.14
helloShape $ Rectangle 10.0 5.0