Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class HasLoggingRep a where
- toLogEntry :: a -> Text
- -- ...
- where
- logInfo :: forall a . HasLoggingRep a => a -> IO ()
- logInfo = loggerF logger Info . toLogEntry
- -- ...
- someFn response = do
- logInfo response
- someFn2 request = do
- logInfo request
Add Comment
Please, Sign In to add comment