-
-
Save denisshevchenko/fe7e65d710110a50e558ee4fdaa3e9dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Show a where | |
show :: a -> String | |
data Jump = Jump Int | |
instance Show Jump where | |
show (Jump n) = "Мой прыжок равен " ++ show n ++ " см" | |
main :: IO () | |
main = print jump | |
where | |
jump = Jump 210 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment