Lines Matching refs:singleton
34 fromList = mconcat . map singleton
58 singleton :: el -> coll
60 instance Singleton a (Maybe a) where singleton = Just function
61 instance Singleton a [a] where singleton = (:[]) function
62 instance Singleton a ([a] -> [a]) where singleton = (:) function
63 instance Singleton a (Endo [a]) where singleton = Endo . (:) function
65 where singleton = (:| []) function
66 instance Singleton a (Seq a) where singleton = Seq.singleton function
67 instance Singleton a (Set a) where singleton = Set.singleton function
68 instance Singleton Int IntSet where singleton = IntSet.singleton function
70 instance Singleton (k ,a) (Map k a) where singleton = uncurry Map.singleton function
71 instance Singleton (Int,a) (IntMap a) where singleton = uncurry IntMap.singleton function
73 instance Hashable a => Singleton a (HashSet a) where singleton = HashSet.singleton function
74 instance Hashable k => Singleton (k,a) (HashMap k a) where singleton = uncurry HashMap.singleton function