Skip to content

Commit 6c8f70c

Browse files
committed
add tests and address comments
1 parent 95789f6 commit 6c8f70c

File tree

12 files changed

+63
-2
lines changed

12 files changed

+63
-2
lines changed

plutus-core/plutus-ir/src/PlutusIR/Compiler/Definitions.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ newtype DefT key uni fun ann m a = DefT {unDefT :: StateT (DefState key uni fun
129129
, MonadReader r
130130
, MonadQuote
131131
, MonadWriter w
132-
, MonadIO
133132
)
134133

135134
-- Need to write this by hand, deriving wants to derive the one for DefState

plutus-tx-plugin/plutus-tx-plugin.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ test-suite plutus-tx-plugin-tests
190190
TH.Spec
191191
TH.TestTH
192192
Unicode.Spec
193+
Unsupported.Spec
193194

194195
build-depends:
195196
, base >=4.9 && <5

plutus-tx-plugin/src/PlutusTx/Compiler/Types.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ type Compiling uni fun m ann =
206206
, MonadState CompileState m
207207
, MonadDefs LexName uni fun Ann m
208208
, MonadWriter CoverageIndex m
209-
, MonadIO m
210209
)
211210

212211
-- Packing up equality constraints gives us a nice way of writing type signatures as this way

plutus-tx-plugin/test/Spec.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import StdLib.Spec qualified as Lib
2828
import Strictness.Spec qualified as Strictness
2929
import TH.Spec qualified as TH
3030
import Unicode.Spec qualified as Unicode
31+
import Unsupported.Spec qualified as Unsupported
3132

3233
import Test.Tasty (TestTree, defaultMain)
3334
import Test.Tasty.Extras (embed, runTestNested)
@@ -68,4 +69,5 @@ tests =
6869
, StageViolation.tests
6970
, CallTrace.tests
7071
, BuiltinCasing.tests
72+
, Unsupported.tests
7173
]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Error: Unsupported feature: GHC.Classes.Eq.==, use PlutusTx.Eq.Class.Eq
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Error: Unsupported feature: IO actions are not supported in Plinth
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Error: Unsupported feature: GHC.Classes.Ord.>, use PlutusTx.Ord.Class.Ord
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Error: Unsupported feature: GHC.Classes.Eq.==, use PlutusTx.Eq.Class.Eq
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Error: Unsupported feature: IO actions are not supported in Plinth

plutus-tx-plugin/test/Unsupported/9.6/ord.golden.pir

Whitespace-only changes.

0 commit comments

Comments
 (0)