follow-0.1.0.0: Haskell library to follow content published on any subject.

Safe HaskellNone
LanguageHaskell2010

Follow.Middlewares.Decode

Description

Middleware to decode entry fields, usually fetched from some external source, from a given encoding different to default Latin1.

import Follow.Middlewares.Decode

apply UTF8 directory
Synopsis

Documentation

apply :: Encoding -> Middleware Source #

Middleware operation. Give it a Encoding and get back the decoded directory.

data Encoding Source #

Supported encodings.

Constructors

UTF8 
UTF16LE 
UTF16BE 
UTF32LE 
UTF32BE 
Instances
Eq Encoding Source # 
Instance details

Defined in Follow.Middlewares.Decode

Show Encoding Source # 
Instance details

Defined in Follow.Middlewares.Decode

FromJSON Encoding #

utf8, utf16le, utf16be, utf32le or utf32be

Instance details

Defined in Follow.Parser