[Haskell] compiler-independent core libraries infrastructure