<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">To help me in learning Haskell I started blogging about some of the things I’ve looked at. </div><div class="">One such topic was calculating square roots ‘by hand’ and then deriving a Haskell algorithm. </div><div class="">I wrote about the well known technique here</div><div class=""><a href="http://gitcommit.co.uk/2017/08/25/the-root-of-the-problem-part-1/" class="">http://gitcommit.co.uk/2017/08/25/the-root-of-the-problem-part-1/</a></div><div class=""><br class=""></div><div class="">and it it is really quite a simple method. </div><div class=""><br class=""></div><div class="">The second part of the post will be an implementation in Haskell. </div><div class=""><br class=""></div><div class="">I then tried implementing it and got something that works but really its not very pleasant to look at! And its something I don’t want to post! Some parts are fine but I think I locked myself into the notion that it had to be using State and really the end result is pretty poor. </div><div class=""><br class=""></div><div class="">I know this i perhaps a ‘big ask’ but I’d really appreciate any suggestions, solutions, hints etc. I will of course give full attribution. </div><div class=""><br class=""></div><div class="">I’ve created a gist of the code here</div><div class=""><a href="https://gist.github.com/banditpig" class="">https://gist.github.com/banditpig</a></div><div class=""><br class=""></div><div class="">Many Thanks</div><div class=""><br class=""></div><div class="">Mike</div></body></html>