layers now compiles with GHC 7.0 and up