http-media-0.8.0.0: Processing HTTP Content-Type and Accept headers
Safe Haskell Safe-Inferred
Language Haskell2010

Network.HTTP.Media.Language

Description

Defines the Language accept header with an Accept instance for use in language negotiation.

Synopsis

Documentation

data Language Source #

Suitable for HTTP language-ranges as defined in RFC4647 .

Specifically:

language-range = (1*8ALPHA *("-" 1*8alphanum)) / "*"

toParts :: Language -> [ CI ByteString ] Source #

Converts Language to a list of its language parts. The wildcard produces an empty list.