Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
tagged :: (Tagged a, ToTag t) => a -> [t] -> a Source
Add tags (with or without values). Due to OverloadedStrings instances interference you have to pin types using pack
or ::
.
counter_ "pings" `tagged` [ T.pack "success", "icmp" :: Text, "default" ] `tagged` [ (T.pack "valued", "42" :: Text), ("it", "works") ]