18 lines
344 B
Haskell
18 lines
344 B
Haskell
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
|
|
|
module Data.HashSet.Instances
|
|
() where
|
|
|
|
import ClassyPrelude
|
|
|
|
import Servant.Docs
|
|
|
|
import qualified Data.HashSet as HashSet
|
|
|
|
import Control.Lens
|
|
import Data.Proxy
|
|
|
|
|
|
instance (ToSample a, Hashable a, Eq a) => ToSample (HashSet a) where
|
|
toSamples _ = over _2 HashSet.fromList <$> toSamples (Proxy @[a])
|