forall in Scala

As @Michael Kohl commented, this use of forall in Haskell is an existential type and can be exactly replicted in Scala using either the forSome construct or a wildcard. That means that @paradigmatic’s answer is largely correct. Nevertheless there’s something missing there relative to the Haskell original which is that instances of its ShowBox type … Read more