kosmikus / lhs2tex

Preprocessor for typesetting Haskell sources with LaTeX
Other
99 stars 28 forks source link

unindent not correctly recognized (possibly in connection with `infix`) #15

Open andreasabel opened 12 years ago

andreasabel commented 12 years ago

The following code is indented incorrectly:

  showInverse x = do
      q <- invert x
      return $ show q
    `catchError` \ e -> return "infinity"

It's rendered more like this:

  showInverse x = do
    q <- invert x
    return $ show q
     `catchError` \ e -> return "infinity"

(and that has a different meaning in Haskell).