Only use AllowAmbiguousTypes starting from GHC 7.8
dist: add nix support
Bump to 0.4.6