<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Quentin Le Guennec schreef op 5-2-2015
      om 14:34:<br>
    </div>
    <blockquote
cite="mid:CANMnDVPgRLo=NcHfw2j9K78N2srHdP74p5fCw2jez=-14f9phA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:garamond,serif;font-size:small">Hey,</div>
        <div class="gmail_default"
          style="font-family:garamond,serif;font-size:small"><br>
        </div>
        <div class="gmail_default"
          style="font-family:garamond,serif;font-size:small">I read your
          mail on haskell-cafe mailing list. What is CIS course excatly?
          Could you send me a link to the exercises? Thanks.</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2015-02-05 8:48 GMT+01:00 Roelof Wobben
          <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:r.wobben@home.nl" target="_blank">r.wobben@home.nl</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hello, <br>
              <br>
              I have to do this : <br>
              <br>
              Exercise 1 We need to first find the digits of a number.
              Define the<br>
              functions<br>
              toDigits :: Integer -> [Integer]<br>
              toDigitsRev :: Integer -> [Integer]<br>
              toDigits should convert positive Integers to a list of
              digits. (For 0 or<br>
              negative inputs, toDigits should return the empty list.)
              toDigitsRev<br>
              should do the same, but with the digits reversed.<br>
              Example: toDigits 1234 == [1,2,3,4]<br>
              Example: toDigitsRev 1234 == [4,3,2,1]<br>
              Example: toDigits 0 == []<br>
              Example: toDigits (-17) == []<br>
              <br>
              <br>
              I have this so far : <br>
              <br>
              -- | convert a number to a array in pieces where a
              negative number will be a empty array. <br>
              toDigits :: Integer -> [Integer]<br>
              toDigits n <br>
                | n < 0 : []<br>
                | otherwise : n/10 : []<br>
              <br>
              -- | Main entry point to the application.<br>
              module Main where<br>
              <br>
              -- | The main entry point.<br>
              main :: IO ()<br>
              main = do<br>
                  toDigits 123 <br>
              <br>
              but now I see this error message : <br>
              <br>
              <div>src/Main.hs@5:3-5:4 </div>
              <div><span>parse error on input | <br>
                  <br>
                  This is not homework because I do this as a
                  self-study.<span class="HOEnZb"><font color="#888888"><br>
                      <br>
                      Roelof<br>
                      <br>
                    </font></span></span>
                <div style="font-size:14px"><span><br>
                  </span></div>
              </div>
              <br>
              <br>
              <br>
              <br>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            Haskell-Cafe mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.haskell.org/mailman/listinfo/haskell-cafe"
              target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">Quentin Le Guennec</div>
        </div>
      </div>
    </blockquote>
    <br>
    Here you can find the answer  :
    <a class="moz-txt-link-freetext" href="http://www.seas.upenn.edu/~cis194/spring13/index.html">http://www.seas.upenn.edu/~cis194/spring13/index.html</a><br>
    <br>
    Roelof<br>
    <br>
  </body>
</html>