Skip to content

Latest commit

 

History

History
53 lines (52 loc) · 687 Bytes

ch21.adoc

File metadata and controls

53 lines (52 loc) · 687 Bytes

21 Traversable

21.12 Chapter Exercises

Traversable instances

  1. Identity

    link:ch21_21.12_1.hs[role=include]
  2. Constant

    link:ch21_21.12_2.hs[role=include]
  3. Maybe

    link:ch21_21.12_3.hs[role=include]
  4. List

    link:ch21_21.12_4.hs[role=include]
  5. Tree

    link:ch21_21.12_5.hs[role=include]
  6. Tree'

    link:ch21_21.12_6.hs[role=include]
  7. S

    Note
    tests are passing, but I kind of hacked it until it compiled. Also, hardcoded use of [] for the inner type. Don’t know how to generate one :(
    link:ch21_21.12_7.hs[role=include]

Instances for Tree

link:ch21_21.12_8.hs[role=include]