サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
体力トレーニング
blog.csongor.co.uk
The list of type class constraints in a function signature can sometimes get out of hand. In these situations, we can introduce a type synonym (thanks to ConstraintKinds) to avoid repetition. Say we want to group together the Show and Read constraints: type Serialise a = (Show a, Read a) Now Serialise a can be used anywhere where we require both constraints: roundtrip :: Serialise a => a -> a roun
このページを最初にブックマークしてみませんか?
『blog.csongor.co.uk』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く