Move stylish-haskell invocation to after-save-hook.
Use `read-directory-name' to get completion.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Show key bindings in docstring of `haskell-interactive-mode'.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
haskell-interactive-mode: Minor checkdoc fixes.

Still a lot of errors.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Replaced `goto-line' with `goto-char'/`forward-line'.

`goto-line' should not be called from a Lisp program.

See docstring for `goto-line'

> This function is usually the wrong thing to use in a Lisp program.
> What you probably want instead is something like:
>  (goto-char (point-min))
>  (forward-line (1- N))
> If at all possible, an even better solution is to use char counts
> rather than line counts.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Use `mapc' instead of `mapcar'.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Use (forward-line -1) instead of `previous-line'.

From the `previous-line' docstring:

> If you are thinking of using this in a Lisp program, consider using
> `forward-line' with a negative argument instead.  It is usually easier
> to use and more reliable (no dependence on goal column, etc.).

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Makefile: Use .PHONY to mark phony targets.

See "(make) Phony Targets".

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Makefile: added clean target

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Makefile: call Emacs with -Q; use $(BATCH) instead of direct call.

Using a variable like $(BATCH) should make it easier to adjust Emacs
flags.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
haskell-session-from-buffer: Check if buffer has a file name.

Fixes: Calling `haskell-interactive-switch' from a buffer with no
associated file name causes a type error in
`haskell-session-from-buffer'.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
haskell-interactive-mode-eval-mode is either a function or nil.

It is not a boolean because t does not make sense.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Merge pull request #104 from ruediger/minor-changes

Several minor fixes.
Add a customization option for the visibility of multi-line errors

Haskell interactive mode shows only the first line of a compiler error
by default.  This change makes this customizable so that users can
decide on their own if they want to see the full compiler errors by
default, rather than always collapsing them away.
Merge pull request #106 from nurpax/customize-error-collapse-default

Add a customization option for the default visibility of multi-line errors
adding cabal-ghci as possible process mode
Merge pull request #109 from sztupi/master

offering cabal-ghci as an alternative haskell-process-type
Merge branch 'master' of git://github.com/haskell/haskell-mode

Conflicts:
	haskell-interactive-mode.el