first auth handler :)

45 views
Skip to first unread message

Chris Bolton

unread,
Mar 29, 2013, 3:15:04 PM3/29/13
to snap_fr...@googlegroups.com
Relatively new to haskell and snap here, writing my first auth handlers. First go is below, I'm sure there's a more haskelly-way to write it. Any initial tips?

http://hastebin.com/rupasajonu.tex

MightyByte

unread,
Mar 29, 2013, 3:27:41 PM3/29/13
to snap_fr...@googlegroups.com
That handler won't tolerate failure very well.  You might trying something along this line.



On Fri, Mar 29, 2013 at 3:15 PM, Chris Bolton <c...@chrisbolton.me> wrote:
Relatively new to haskell and snap here, writing my first auth handlers. First go is below, I'm sure there's a more haskelly-way to write it. Any initial tips?

http://hastebin.com/rupasajonu.tex

--
 
---
You received this message because you are subscribed to the Google Groups "Snap Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snap_framewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Chris Bolton

unread,
Mar 29, 2013, 3:33:56 PM3/29/13
to snap_fr...@googlegroups.com
mm looks like I'll have to read up on monad transformers. thankies :)


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "Snap Framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/snap_framework/oRhbQz70Qvw/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to snap_framewor...@googlegroups.com.

Chris Bolton

unread,
Apr 16, 2013, 2:50:15 PM4/16/13
to snap_fr...@googlegroups.com
how does this new registerHandler look? http://hastebin.com/tetitariwi.coffee
Reply all
Reply to author
Forward
0 new messages