Skip to content

Line after "else do" does not indent #269

Open
@ryankask

Description

@ryankask

I have haskell-indentation enabled on On Emacs 24.3.1 and a snapshot of haskell-mode from 12 May.

I'm working through Real World Haskell and I have something like:

mainloop :: Handle -> Handle -> IO ()
mainloop inh outh =
  do ineof <- hIsEOF inh
     if ineof
       then return ()
       else do
    -->inpStr <- hGetLine inh
       hPutStrLn outh (map toUpper inpStr)
       mainloop inh outh

The line that starts with inpStr will not indent despite pressing tab.

I don't know if the above is bad style or if there is a different way haskell-indentation expects, but it seems like the line should indent 2 spaces.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions