module HCheat where
  
import Prelude hiding ((.))
import MPS

-- google analytics
analytics x = 
  [ "<script type=\"text/javascript\">                                                                                                  "
  , "var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\");                                  "
  , "document.write(unescape(\"%3Cscript src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E\")); "
  , "</script>                                                                                                                          "
  , "<script type=\"text/javascript\">                                                                                                  "
  , "try { var pageTracker = _gat._getTracker(\"" ++ x ++ "\");                                                                               "
  , "pageTracker._trackPageview();                                                                                                      "
  , "} catch(err) {}</script>                                                                                                                          "
  ]
  .map strip
  .join "\n"


lorem = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."