auto-complete and yasnippet

solution for php, haskell and other modes when they are used together with yasnippet