~alcinnz/haskell-stylist

ref: 7d1e8859d6d19e1874631c9b1fc37911cf1b1597 haskell-stylist/src/Data/CSS/Syntax/StyleSheet/ByteString.hs -rw-r--r-- 310 bytes
7d1e8859 — Adrian Cochrane Let user & useragent styles query for a lack of author styles. 4 years ago
                                                                                
950b7f7d Adrian Cochrane
1
2
3
4
5
6
7
8
9
-- To determine the text encoding, attempt each text encoding to look for an initial @charset, falling back to UTF8
-- An abstraction would do the test itself.
-- text (Data.Text.Encoding) module includes:
--  decodeLatin1
--  decodeUtf8
--  decodeUtf16LE
--  decodeUtf16BE
--  decodeUtf32LE
--  decodeUtf32BE