Skip to content

Instantly share code, notes, and snippets.

@denisshevchenko
Last active May 25, 2017 15:33
Show Gist options
  • Save denisshevchenko/fe7e65d710110a50e558ee4fdaa3e9dd to your computer and use it in GitHub Desktop.
Save denisshevchenko/fe7e65d710110a50e558ee4fdaa3e9dd to your computer and use it in GitHub Desktop.
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