title: Multiple pattern match
body: <p>Hello can someone please explain me how can i do the following in haskell:</p>
  
  <pre><code>f :: Char -&gt; Bool
  f 'a' = someMethod
  f 'b' = someMethod
  f 'c' = someMethod
  f _ = someOtherMethod
  </code></pre>
  
  <p>Can i do somehow something similar to the <code>@</code> pattern :</p>
  
  <pre><code>f :: Char -&gt; Bool
  f x@(pattern1 || pattern2 ...pattern n) = sameMethod x
  </code></pre>
  
  <p>Basically I want to apply the same method for multiple patterns .Is this possible? I do not want to write N pattern match lines that basically do the same thing.</p>
  
  <p><strong>P.S</strong> My method that i want to implement is the following :</p>
  
  <pre><code>readContent::String-&gt;Maybe [Double]
  readContent (x:xs)=go [] [](x:xs) where
      go _ ls [] =if length length ls &gt; 0  then Just ls else Nothing
      go small big (x:xs)= case x of
                             '}' -&gt; Just (small:big) -- i want some other pattern here too
                             ',' -&gt; go [] small:big  xs 
                              t@(_) -&gt; go  t:small big xs
  </code></pre>
  
  <p>I am parsing a <code>String</code> that can be delimited by <code>}</code>,<code>{</code> and <code>,</code>. For <code>}</code> and <code>{</code> i want to apply the same method.</p>