Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- agents :: NonEmpty UserAgent
- newtype UserAgent = UserAgent {
- unUserAgent :: Text
- randomAgent :: MonadRandom m => m UserAgent
Documentation
A newtype for typesafety, use unUserAgent to get the underlying text
randomAgent :: MonadRandom m => m UserAgent Source #
Select a random agent, this can for example be run in IO.