$ python setup.py build
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
Shape: データ名 | |
Rectangle: constructor | |
先頭がおおもじなのは型クラス名です | |
> data Shape = Rectangle Float Float | |
> | Square Float | |
> | Circle Float | |
> | Triangle Float Float | |
これについての関数を定義 |