*- You could consider having Error as a generic tag and let it take a String. That way you could populate with an error message in your validate function. That would make the viewValidation function slightly simpler.*
done! https://gist.github.com/notyy/d2f9fb4087e26d42e450a956c51f054d feel good enough for now, thanks :) On Thu, May 26, 2016 at 7:59 AM, Magnus Rundberget <[email protected]> wrote: > Looks a lot better to me, nice and testable too ! > > - You could consider having Error as a generic tag and let it take a > String. That way you could populate with an error message in your validate > function. That would make the viewValidation function slightly simpler. > > Btw you probably don't want to print out the password when displaying the > error msg :-) sort of defeats the purpose of using input type password to > hide it. > > -- > You received this message because you are subscribed to the Google Groups > "Elm Discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
