Better Show HandlerContents
This commit is contained in:
parent
4e2041a1e3
commit
3956958b7a
@ -346,7 +346,12 @@ data HandlerContents =
|
|||||||
deriving Typeable
|
deriving Typeable
|
||||||
|
|
||||||
instance Show HandlerContents where
|
instance Show HandlerContents where
|
||||||
show _ = "Cannot show a HandlerContents"
|
show (HCContent status (TypedContent t _)) = "HCContent " ++ show (status, t)
|
||||||
|
show (HCError e) = "HCError " ++ show e
|
||||||
|
show (HCSendFile ct fp mfp) = "HCSendFile " ++ show (ct, fp, mfp)
|
||||||
|
show (HCRedirect s t) = "HCRedirect " ++ show (s, t)
|
||||||
|
show (HCCreated t) = "HCCreated " ++ show t
|
||||||
|
show (HCWai _) = "HCWai"
|
||||||
instance Exception HandlerContents
|
instance Exception HandlerContents
|
||||||
|
|
||||||
-- Instances for WidgetT
|
-- Instances for WidgetT
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user