Package: haskell-mode Version: 2.1-1 Severity: normal haskell-mode indents parallel list comprehensions (the GHC extension) just fine, but it seems to have trouble with non-parallel ones. For instance, consider this code fragment:
allCards :: CardUniverse -> [CardValue]
allCards (CardUniverse s free) = free ++ suited
where suited = [cv | suit <- s,
(cv, _) <- elems (suitCards suit)]
haskell-mode wants me to indent the last line to either the level of
"s" or the level of "cv" in the previous line; for instance:
-- | Returns a list of all the cards in the universe; this will be a
-- set if the universe is well-formed.
allCards :: CardUniverse -> [CardValue]
allCards (CardUniverse s free) = free ++ suited
where suited = [cv | suit <- s,
(cv, _) <- elems (suitCards suit)]
Daniel
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental'), (1, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages haskell-mode depends on:
ii emacs21 [emacsen] 21.4a-3 The GNU Emacs editor
haskell-mode recommends no packages.
-- debconf information:
haskell_mode/ghc_added:
signature.asc
Description: Digital signature

