haskell/haskell-mode — pull request #302 by ikirill (2014-07-12 18:30:28+00:00)
Title: Fix user-error when opening an empty haskell file.

Opening an empty file with decl-scan turned on produces the error
File mode specification error: (user-error "No items suitable for an \
index found in this buffer")
and prevents other functions in the mode hook from running.

Adding non-nil noerror argument fixes the problem and an empty file
loads normally.