views:

79

answers:

2

I've tried, with M-x align-regexp:

<-|=
(<-|=)
\(<-|=\)
\\(<-|=\\)

And the ones with <- and = reversed. But none work?

Example code as follows:

  (flags, params, errs) <- parseArgs <$> getArgs
  let options = foldr id [] flags -- Apply functions to list
+3  A: 

You need to escape the |:

\(<-\|=\)
scottfrazer
+5  A: 

try \(<-\|=\) -- you need the (backslashed) parentheses, and you need to backslash the |

jsegal
Humbling this is ... thanks.
qrest
Detailed documentation is (currently) here: http://www.gnu.org/software/emacs/manual/html_node/elisp/Regular-Expressions.html
phils