We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d9d37d commit ef9ac44Copy full SHA for ef9ac44
5 files changed
tests/derivation/core/spec 001/DerivedGen.idr
@@ -0,0 +1,20 @@
1
+module DerivedGen
2
+
3
+import RunDerivedGen
4
5
+%default total
6
7
+%language ElabReflection
8
9
+data X = MkX (List Nat)
10
11
+%hint
12
+XShow : Show X
13
+XShow = %runElab derive
14
15
+export
16
+checkedGen : Fuel -> (Fuel -> Gen MaybeEmpty Nat) => Gen MaybeEmpty X
17
+checkedGen = deriveGen
18
19
+main : IO ()
20
+main = runGs [ G $ \fl => checkedGen fl @{smallNats} ]
tests/derivation/core/spec 001/RunDerivedGen.idr
@@ -0,0 +1 @@
+../_common/RunDerivedGen.idr
tests/derivation/core/spec 001/derive.ipkg
+../_common/derive.ipkg
tests/derivation/core/spec 001/expected
tests/derivation/core/spec 001/run
+../_common/run
0 commit comments