Using haskell-stylish-on-save with Yasnippet's import snippet sometimes erases import list. It seems that this occur when the import order will be changes.
Example:
module Main where
import Prelude
imp
Then hit [TAB] on right after imp and import Language.Haskell.TH using ghc-mod's function symbol completion:
module Main where
import Prelude
import Language.Haskell.TH
Push [TAB] to exit snippet, and don't move caret from right after TH.
Hit C-xC-s, then import list vanishes!:
Environment
- GNU Emacs 24.3.4 (x86_64-apple-darwin11.4.2, Carbon Version 1.6.0 AppKit 1138.51)
- yasnippet-20140314
- haskell-mode-20140330
- ghc-20140331