[Haskell-cafe] Emacs Haskell Mode: Indenting after "where"

Joel Reymont joelr1 at gmail.com
Thu Oct 6 16:40:09 EDT 2005


Folks,

Does anyone know how to make the Haskell mode (Emacs) indent the line  
after "where" for this type of look:

     peek = if be then peek0 else peekR
         where
            peek0 a = fmap BigEndian $ peek (castAway a)
            peekR a = peekByteOff a 0

instead of this:

     peek = if be then peek0 else peekR
         where
         peek0 a = fmap BigEndian $ peek (castAway a)
         peekR a = peekByteOff a 0

     Thanks, Joel

--
http://wagerlabs.com/idealab







More information about the Haskell-Cafe mailing list