11 Matching Annotations
  1. Aug 2025
    1. repeat makes use of a type whose ForM instance is partial.

      repeat is a piece of syntax and cannot be checked for definition (at least I failed to do so).

    1. The second argument has a type that begins with Unit → to allow the definition of seq to short-circuit in cases where the function will never be applied.

      Remember that this is needed because Lean is eager and strict, as opposed to Haskell

    1. Structures and Inheritance

      This is not in Haskell or Ocaml; it's nice to see how Lean approach subtyping problems, the desugaring resembles IRs from major compilers from other languages.