Skip to content

Commit e2853c0

Browse files
lehinsSoupstraw
authored andcommitted
Re-enable the warning and cleanup redundant constraints
1 parent 5c56d03 commit e2853c0

File tree

2 files changed

+3
-8
lines changed
  • libs
    • cardano-ledger-core/src/Cardano/Ledger/Core
    • cardano-ledger-test/src/Test/Cardano/Ledger/Constrained/Conway/Instances

2 files changed

+3
-8
lines changed

libs/cardano-ledger-core/src/Cardano/Ledger/Core/PParams.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{-# LANGUAGE DataKinds #-}
44
{-# LANGUAGE DefaultSignatures #-}
55
{-# LANGUAGE DeriveGeneric #-}
6-
{-# LANGUAGE DerivingStrategies #-}
76
{-# LANGUAGE DerivingVia #-}
87
{-# LANGUAGE EmptyCase #-}
98
{-# LANGUAGE FlexibleContexts #-}

libs/cardano-ledger-test/src/Test/Cardano/Ledger/Constrained/Conway/Instances/Ledger.hs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
{-# LANGUAGE FlexibleContexts #-}
88
{-# LANGUAGE FlexibleInstances #-}
99
{-# LANGUAGE GADTs #-}
10-
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
1110
{-# LANGUAGE ImportQualifiedPost #-}
1211
{-# LANGUAGE InstanceSigs #-}
1312
{-# LANGUAGE LambdaCase #-}
@@ -21,8 +20,6 @@
2120
{-# LANGUAGE TypeOperators #-}
2221
{-# LANGUAGE UndecidableInstances #-}
2322
{-# OPTIONS_GHC -Wno-orphans #-}
24-
-- GHC9.2.8 needs this
25-
{-# OPTIONS_GHC -Wno-redundant-constraints #-}
2623

2724
-- | This module provides the necessary instances of `HasSpec`
2825
-- and `HasSimpleRep` to write specs for the environments,
@@ -790,7 +787,7 @@ instance Logic StringW where
790787
bar :: forall s. (HasSpec s, StringLike s) => NonEmpty Int -> Specification s
791788
bar ys = typeSpec $ lengthSpec @s (MemberSpec ys)
792789

793-
mapTypeSpec :: forall a b. (HasSpec a, HasSpec b) => StringW '[a] b -> TypeSpec a -> Specification b
790+
mapTypeSpec :: forall a b. StringW '[a] b -> TypeSpec a -> Specification b
794791
mapTypeSpec StrLenW ss = getLengthSpec @a ss
795792

796793
class StringLike s where
@@ -1888,9 +1885,8 @@ instance Logic CoercibleW where
18881885
propagateMemberSpec CoerceW (Unary HOLE) xs = coerceSpec $ MemberSpec xs
18891886
propagateTypeSpec CoerceW (Unary HOLE) ts cant = coerceSpec $ TypeSpec ts cant
18901887

1891-
mapTypeSpec ::
1892-
forall a b. (HasSpec a, HasSpec b) => CoercibleW '[a] b -> TypeSpec a -> Specification b
1893-
mapTypeSpec CoerceW ss = getCoerceSpec @a ss
1888+
mapTypeSpec :: forall a b. CoercibleW '[a] b -> TypeSpec a -> Specification b
1889+
mapTypeSpec CoerceW = getCoerceSpec @a
18941890

18951891
coerce_ ::
18961892
forall a b.

0 commit comments

Comments
 (0)