Compatibility for lab2.

E.g. hGetSome and catch.