<div dir="ltr"><div>Esteemed Haskellers,</div><div><br></div><div>It is working for me, but I am puzzled by the matchRegex function:</div><div><br></div><div> > import Text.Regex</div><div> > :i matchRegex</div><div> matchRegex :: Regex -> String -> Maybe [String]</div><div> -- Defined in ‘Text.Regex’</div><div><br></div><div>Searches that fail return Nothing:</div><div><br></div><div> > matchRegex (mkRegex "z") "abracadabra"</div><div> Nothing</div><div><br></div><div>which makes sense. But why do searches that succeed return an empty list of Strings?</div><div><br></div><div> > matchRegex (mkRegex "a") "abracadabra"</div><div> Just []</div><div> > </div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Jeffrey Benjamin Brown</div></div>
</div>