<div dir="ltr"><span style="font-size:14px">> indexed access is always something you should think about, </span><br><br>yep, leave aside plenty of time for debugging when you use !! or "head" with list or ! with map<div><br></div><div>package "safe" helps to safely access lists:<br><div><a href="https://hackage.haskell.org/package/safe">https://hackage.haskell.org/package/safe</a>​</div></div></div>