Guest User

Untitled

a guest
Feb 15th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. class HasLoggingRep a where
  2. toLogEntry :: a -> Text
  3.  
  4. -- ...
  5. where
  6. logInfo :: forall a . HasLoggingRep a => a -> IO ()
  7. logInfo = loggerF logger Info . toLogEntry
  8. -- ...
  9. someFn response = do
  10. logInfo response
  11. someFn2 request = do
  12. logInfo request
Add Comment
Please, Sign In to add comment