Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/internal/Internal/Semigroup/Tuple.hs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ instance Arbitrary VariableSum where
instance Show VariableSum where
show (VariableSum vs) = F1.intercalate1 " <> " $ show <$> vs

a, b, c, d :: VariableSum
a = VariableSum (A :| [])
b = VariableSum (B :| [])
c = VariableSum (C :| [])
Expand Down
13 changes: 12 additions & 1 deletion src/public/Test/QuickCheck/Classes/Group.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Prelude
import Data.Function
( (&) )
import Data.Group
( Abelian, Group (..) )
( Abelian, Group (invert, (~~)) )
import Data.Proxy
( Proxy (..) )
import Internal
Expand All @@ -38,6 +38,8 @@ import Test.QuickCheck
import Test.QuickCheck.Classes
( Laws (..) )

import qualified Data.Group as Group

--------------------------------------------------------------------------------
-- Group
--------------------------------------------------------------------------------
Expand Down Expand Up @@ -348,3 +350,12 @@ abelianLaw_commutative a b =
& cover
"(a /= b) && (a <> b /= a) && (b <> a /= b)"
((a /= b) && (a <> b /= a) && (b <> a /= b))

--------------------------------------------------------------------------------
-- Internal
--------------------------------------------------------------------------------

-- | Specialised version of `pow` to avoid type defaulting.
--
pow :: Group m => m -> Int -> m
pow = Group.pow
Loading