Skip to content

haskell-stylish-on-save with Yasnippet + ghc-mod sometimes removes import list #256

Closed
@konn

Description

@konn

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!:

module Main where
import 

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions