~alcinnz/haskell-stylist

ref: 950b7f7d54abd218f8ec12272da453bf69469438 haskell-stylist/src/Data/CSS/Syntax/StyleSheet/ByteString.hs -rw-r--r-- 310 bytes
950b7f7d — Adrian Cochrane Release Haskell Stylist 1.1.0.0! 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