split hooks/ghcjs patch