This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
fradrive-old/src/Data/HashSet/Instances.hs

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])