小文字と大文字
replでhogeとHogeを確認する
hoge
code:elm
-- NAMING ERROR ------------------------------------------------------------ elm
I cannot find a hoge variable:
Hoge
code:elm
-- NAMING ERROR ------------------------------------------------------------ elm
I cannot find a Hoge constructor:
つまり、小文字は変数、大文字はコンストラクタとして認識しようとしていることがわかる
既存の型(Stringとか)を入れても同様である
value
function
if expression
list
tuple
record
これら(のリテラル)は、全てreplが評価でき、変数に代入できるといえる
型名
String, Char, Int ...
これらは、型名が書かれるべき場所
annotation
type aliasの右辺
で記述することになる