Skip to content

Commit

Permalink
Comment on newtype MyCompose
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Oct 15, 2023
1 parent 2bc59e5 commit 3cd64a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test-suite/Math/NumberTheory/TestUtils/MyCompose.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import GHC.Generics (Generic)
import Test.QuickCheck (Arbitrary)
import Test.SmallCheck.Series (Serial)

-- | As of @base-4.19@ Data.Functor.Compose has every instance we need,
-- except for instance Arbitrary, which overzealously requires Arbitrary1.
newtype MyCompose f g a = MyCompose { getMyCompose :: f (g a) }
deriving (Eq, Ord, Show, Functor, Num, Enum, Bounded, Real, Integral, Arbitrary, Generic)

Expand Down

0 comments on commit 3cd64a2

Please sign in to comment.