~alcinnz/haskell-stylist

ref: 41adcf9dadc941ca71322a1c4043a26e912e9d53 haskell-stylist/src/Data/CSS/Syntax/StyleSheet/ByteString.hs -rw-r--r-- 310 bytes
41adcf9d — Adrian Cochrane Introduce simplified html2css API 4 years ago
                                                                                
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