~alcinnz/haskell-stylist

ref: 9da41d4e978f1a1ba403884088c55f3e22f856f4 haskell-stylist/src/Data/CSS/Syntax/StyleSheet/ByteString.hs -rw-r--r-- 310 bytes
9da41d4e — Adrian Cochrane Request @import'd styles concurrently. 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