型クラス
「型クラス」を扱った14問。日付を開くと、その日のドリルがそのまま読めます。日付の横の動物は難易度で、ハリネズミ・孔雀・バイソン・クジラの順に重くなります。
- Haskell / READ · 2026-11-19 パスをprintする show, print, putStrLn, 文字列リテラル, エスケープ, Show型クラス, string literal escape
- Haskell / READ · 2026-11-01 同じ文字列を3通りに読む read, 型注釈, 型推論, 戻り値の型で決まる多相, Read型クラス, return type polymorphism, type annotation
- Haskell / DEBUG · 2026-10-28 届かないままの頂点 derivingしたOrd, 構成子の宣言順, 到達できない頂点, 最短距離の緩和, derived Ord instance, constructor order
- Haskell / READ · 2026-10-23 いちばん大きい優先度 導出された Ord, 構築子の宣言順, deriving Ord, derived instance, constructor order, maximum
- Haskell / DEBUG · 2026-10-23 名前で決まる優勝者 導出された Ord, フィールドの宣言順, レコードの比較, deriving Ord, field order, derived comparison
- Haskell / WRITE · 2026-10-20 括弧を忘れない型消去 型消去, クロージャ, showsPrec, 表示の優先度, type erasure, closure, showsPrec precedence
- Haskell / READ · 2026-10-20 箱に入れた文字のリスト 型消去, 存在型, showList, 文字列の表示, type erasure, existential type, ExistentialQuantification
- Haskell / WRITE · 2026-10-14 Eqだけで周期を求める フロイドの循環検出法, ウサギとカメ, 周期, Floyd cycle detection, tortoise and hare, cycle length
- Haskell / DEBUG · 2026-10-14 位置だけ比べる玉の周期 フロイドの循環検出法, ウサギとカメ, Eq インスタンス, 状態の同一性, 周期, Floyd cycle detection, Eq instance, deriving Eq
- Haskell / WRITE · 2026-09-01 最初のJustで止まる Firstモノイド, 単位元, 遅延評価, newtypeの照合, mconcat, First monoid, identity element, lazy mconcat
- Haskell / READ · 2026-08-27 succで1つ進める succ, Enum, インクリメント, succ
- Haskell / WRITE · 2026-08-25 フィールドの順で比較 derived Ord, レコード, 宣言順, field order
- Haskell / READ · 2026-08-25 Ordは宣言順 deriving Ord, 宣言順, 比較, derived Ord
- Haskell / DEBUG · 2026-08-25 derive できない型 deriving, インスタンス不足, 型クラス制約, deriving error