~alcinnz/fontconfig-pure

ref: d6a3c66265f75e969a3b7b2f0482fbe286cd5d9c fontconfig-pure/lib/Graphics/Text/Font/Choose/StrSet.hs -rw-r--r-- 338 bytes
d6a3c662 — Adrian Cochrane Integrate fontsets with Haskell Stylist. 7 months ago
                                                                                
4da6f787 Adrian Cochrane
1
2
3
4
5
6
7
8
9
10
11
12
module Graphics.Text.Font.Choose.StrSet where

import Data.Set (Set)
import qualified Data.Set as S

import Data.MessagePack (MessagePack(..))

newtype StrSet = StrSet { unStrSet :: Set String }

instance MessagePack StrSet where
    toObject = toObject . S.toList . unStrSet
    fromObject msg = StrSet <$> S.fromList <$> fromObject msg